Microsoft.CSharp.RuntimeBinder.Semantics.CType.isStructType C# (CSharp) Méthode

isStructType() public méthode

public isStructType ( ) : bool
Résultat bool
        public bool isStructType()
        {
            return IsAggregateType() && getAggregate().IsStruct() || IsNullableType();
        }
        public bool isEnumType()

Usage Example

        public EXPRTHISPOINTER CreateThis(LocalVariableSymbol pLocal, bool fImplicit)
        {
            Debug.Assert(pLocal == null || pLocal.isThis);

            CType type = null;

            if (pLocal != null)
            {
                type = pLocal.GetType();
            }

            EXPRFLAG flags = EXPRFLAG.EXF_CANTBENULL;

            if (fImplicit)
            {
                flags |= EXPRFLAG.EXF_IMPLICITTHIS;
            }
            if (type != null && type.isStructType())
            {
                flags |= EXPRFLAG.EXF_LVALUE;
            }

            EXPRTHISPOINTER rval = new EXPRTHISPOINTER();

            rval.kind  = ExpressionKind.EK_THISPOINTER;
            rval.type  = type;
            rval.flags = flags;
            rval.local = pLocal;
            Debug.Assert(rval != null);
            return(rval);
        }
All Usage Examples Of Microsoft.CSharp.RuntimeBinder.Semantics.CType::isStructType