TypeBinaryExpression Class
.NET Framework 3.5
Represents an operation between an expression and a type.
Assembly: System.Core (in System.Core.dll)
The following example creates a TypeBinaryExpression object that represents a type test of a string value against the Int32 type.
// Create a TypeBinaryExpression that represents a // type test of the string "spruce" against the 'int' type. System.Linq.Expressions.TypeBinaryExpression typeBinaryExpression = System.Linq.Expressions.Expression.TypeIs( System.Linq.Expressions.Expression.Constant("spruce"), typeof(int)); Console.WriteLine(typeBinaryExpression.ToString()); // This code produces the following output: // // ("spruce" Is Int32)
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.