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

isSpecialByRefType() public méthode

public isSpecialByRefType ( ) : bool
Résultat bool
        public bool isSpecialByRefType()
        {
            // ArgIterator, TypedReference and RuntimeArgumentHandle are not supported.
            return false;
        }

Usage Example

Exemple #1
0
            private AggCastResult bindExplicitConversionToAggregate(AggregateType aggTypeDest)
            {
                Debug.Assert(_typeSrc != null);
                Debug.Assert(aggTypeDest != null);

                // TypeReference and ArgIterator can't be boxed (or converted to anything else)
                if (_typeSrc.isSpecialByRefType())
                {
                    return(AggCastResult.Abort);
                }

                AggCastResult result;

                result = bindExplicitConversionFromEnumToAggregate(aggTypeDest);
                if (result != AggCastResult.Failure)
                {
                    return(result);
                }

                result = bindExplicitConversionToEnum(aggTypeDest);
                if (result != AggCastResult.Failure)
                {
                    return(result);
                }

                result = bindExplicitConversionBetweenSimpleTypes(aggTypeDest);
                if (result != AggCastResult.Failure)
                {
                    return(result);
                }

                result = bindExplicitConversionBetweenAggregates(aggTypeDest);
                if (result != AggCastResult.Failure)
                {
                    return(result);
                }

                result = bindExplicitConversionFromPointerToInt(aggTypeDest);
                if (result != AggCastResult.Failure)
                {
                    return(result);
                }

                if (_typeSrc.IsVoidType())
                {
                    // No conversion is allowed to or from a void type (user defined or otherwise)
                    // This is most likely the result of a failed anonymous method or member group conversion
                    return(AggCastResult.Abort);
                }

                result = bindExplicitConversionFromTypeVarToAggregate(aggTypeDest);
                if (result != AggCastResult.Failure)
                {
                    return(result);
                }

                return(AggCastResult.Failure);
            }
All Usage Examples Of Microsoft.CSharp.RuntimeBinder.Semantics.CType::isSpecialByRefType