Exemple #1
0
 /// <nodoc />
 public CastExpression(DeserializationContext context, LineInfo location)
     : base(location)
 {
     Expression = ReadExpression(context);
     TargetType = ReadType(context);
     CastKind   = (TypeAssertionKind)context.Reader.ReadByte();
 }
Exemple #2
0
        /// <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;
        }