Page Comparison - 3.1 Type System (v.5 vs v.6)

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


So where is IExpressionType used? Well, the most obvious example is if you’ve got an expression (i.e., an IExpression), you can use its GetExpressionType() method to get the expression’s IExpressionType. Of course, in most cases the expression type is expected to be an actual object type -- type — an IType -- —  in which case it makes sense to call IExpressionType.ToIType() method. Of course, it returns null in case when the expression in question is not an IType.