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

AsPointerType() public méthode

public AsPointerType ( ) : Microsoft.CSharp.RuntimeBinder.Semantics.PointerType
Résultat Microsoft.CSharp.RuntimeBinder.Semantics.PointerType
        public PointerType AsPointerType() { return this as PointerType; }
        public ParameterModifierType AsParameterModifierType() { return this as ParameterModifierType; }

Usage Example

            private bool bindImplicitConversionFromPointer()
            {
                // 27.4 Pointer conversions
                //
                // In an unsafe context, the set of available implicit conversions (13.1) is extended to include
                // the following implicit pointer conversions:
                //
                // * From any pointer-type to the type void*.

                if (_typeDest.IsPointerType() && _typeDest.AsPointerType().GetReferentType() == _binder.getVoidType())
                {
                    if (_needsExprDest)
                        _binder.bindSimpleCast(_exprSrc, _exprTypeDest, out _exprDest);
                    return true;
                }
                return false;
            }
All Usage Examples Of Microsoft.CSharp.RuntimeBinder.Semantics.CType::AsPointerType