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

IsPointerType() public méthode

public IsPointerType ( ) : bool
Résultat bool
        public bool IsPointerType() { return this is PointerType; }
        public bool IsParameterModifierType() { return this is ParameterModifierType; }

Usage Example

            private bool bindExplicitConversionToPointer()
            {
                // 27.4 Pointer conversions
                //
                // in an unsafe context, the set of available explicit conversions (13.2) is extended to
                // include the following explicit pointer conversions:
                //
                // * From any pointer-type to any other pointer-type.
                // * From sbyte, byte, short, ushort, int, uint, long, or ulong to any pointer-type.

                if (_typeSrc.IsPointerType() || _typeSrc.fundType() <= FUNDTYPE.FT_LASTINTEGRAL && _typeSrc.isNumericType())
                {
                    if (_needsExprDest)
                    {
                        _binder.bindSimpleCast(_exprSrc, _exprTypeDest, out _exprDest);
                    }
                    return(true);
                }
                return(false);
            }
All Usage Examples Of Microsoft.CSharp.RuntimeBinder.Semantics.CType::IsPointerType