Which operator among the following is used to perform the operation of boxing, unboxing, reference and identity conversions?

a) is
b) as
c) typeof
d) all of the mentioned

1 thought on “Which operator among the following is used to perform the operation of boxing, unboxing, reference and identity conversions?”

  1. b
    Explanation: use the as operator, which has this general form:
    expr as type
    Here, expr is the expression being converted to type. If the conversion succeeds, then a reference to type is returned. Otherwise, a null reference is returned. The as operator can be used to perform only reference, boxing, unboxing, or identity conversions.

Leave a Comment