if (obj is string) { }
asThe as operator is used to perform conversions between compatible types. The as operator is used in an expression of the form: expression as typeis equivalent to: expression is type ? (type)expression : (type)null
expression as type
expression is type ? (type)expression : (type)null
No comments:
Post a Comment