/// <nodoc /> public CastExpression(DeserializationContext context, LineInfo location) : base(location) { Expression = ReadExpression(context); TargetType = ReadType(context); CastKind = (TypeAssertionKind)context.Reader.ReadByte(); }
/// <nodoc /> public CastExpression(Expression expression, Type type, TypeAssertionKind castKind, LineInfo location) : base(location) { Contract.Requires(expression != null); Contract.Requires(type != null); Expression = expression; TargetType = type; CastKind = castKind; }