CreateFieldInfo() public method

public CreateFieldInfo ( Microsoft.CSharp.RuntimeBinder.Semantics.FieldSymbol field, AggregateType fieldType ) : Microsoft.CSharp.RuntimeBinder.Semantics.EXPRFIELDINFO
field Microsoft.CSharp.RuntimeBinder.Semantics.FieldSymbol
fieldType AggregateType
return Microsoft.CSharp.RuntimeBinder.Semantics.EXPRFIELDINFO
Example #1
0
        protected override Expr VisitFIELD(ExprField expr)
        {
            Debug.Assert(expr != null);
            Expr pObject;

            if (expr.OptionalObject == null)
            {
                pObject = ExprFactory.CreateNull();
            }
            else
            {
                pObject = Visit(expr.OptionalObject);
            }
            ExprFieldInfo pFieldInfo = ExprFactory.CreateFieldInfo(expr.FieldWithType.Field(), expr.FieldWithType.GetType());

            return(GenerateCall(PREDEFMETH.PM_EXPRESSION_FIELD, pObject, pFieldInfo));
        }