IsDelegate() 공개 메소드

public IsDelegate ( ) : bool
리턴 bool
예제 #1
0
        private MethodSymbol FindDelegateConstructor(AggregateSymbol delegateType)
        {
            Debug.Assert(delegateType != null && delegateType.IsDelegate());

            MethodSymbol ctor = FindDelegateConstructor(delegateType, s_DelegateCtorSignature1);
            if (ctor == null)
            {
                ctor = FindDelegateConstructor(delegateType, s_DelegateCtorSignature2);
            }

            return ctor;
        }
예제 #2
0
        // delegate specific helpers
        private MethodSymbol FindDelegateConstructor(AggregateSymbol delegateType, int[] signature)
        {
            Debug.Assert(delegateType != null && delegateType.IsDelegate());
            Debug.Assert(signature != null);

            return LoadMethod(
                                delegateType,
                                signature,
                                0,                          // meth ty vars
                                GetPredefName(PredefinedName.PN_CTOR),
                                ACCESS.ACC_PUBLIC,
                                false,                      // MethodCallingConventionEnum.Static
                                false);                     // MethodCallingConventionEnum.Virtual
        }