Archive

Posts Tagged ‘Inversions’

Changing an explicit cast-expression to an ‘as’ operator and back

February 16th, 2012 Comments off

Objects can be converted from one type to another, assuming that the types are compatible. Often this is achieved using implicit conversion or explicitly with the cast operator. To perform an explicit casting, there are two approaches used:

  • a cast-expression
  • an ‘as’ operator

Read more…