Mono.Embedding.NativeDelegateWrapper.NativeDelegateWrapper C# (CSharp) Method

NativeDelegateWrapper() static private method

Initializes reflection info fields for NativeDelegateServices.EmitWrapper's usage.
static private NativeDelegateWrapper ( ) : System
return System
        static NativeDelegateWrapper()
        {
            var self = typeof (NativeDelegateWrapper);

            ContextFieldInfo = self.GetField("context",
                BindingFlags.Instance | BindingFlags.NonPublic);
            
            if (ContextFieldInfo == null)
                throw new MissingFieldException(self.FullName, "context");

            CtorInfo = self.GetConstructor(
                BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance,
                null, new[] {typeof (IntPtr), typeof (Type)}, null
                );

            if (CtorInfo == null)
                throw new MissingMethodException(self.FullName, ".ctor(IntPtr, Type)");
        }

Same methods

NativeDelegateWrapper::NativeDelegateWrapper ( IntPtr context, Type delegateType ) : System
NativeDelegateWrapper