Microsoft.CSharp.RuntimeBinder.RuntimeBinder.CreateField C# (CSharp) Method

CreateField() private method

private CreateField ( SymWithType swt, EXPR callingObject ) : EXPR
swt Microsoft.CSharp.RuntimeBinder.Semantics.SymWithType
callingObject Microsoft.CSharp.RuntimeBinder.Semantics.EXPR
return Microsoft.CSharp.RuntimeBinder.Semantics.EXPR
        private EXPR CreateField(
            SymWithType swt,
            EXPR callingObject)
        {
            // For a field, simply create the EXPRFIELD and our caller takes care of the rest.

            FieldSymbol fieldSymbol = swt.Field();
            CType returnType = fieldSymbol.GetType();
            AggregateType fieldType = swt.GetType();
            FieldWithType fwt = new FieldWithType(fieldSymbol, fieldType);

            EXPR field = _binder.BindToField(callingObject.isCLASS() ? null : callingObject, fwt, 0);
            return field;
        }