public bool Equals(OpenMethodResolver other)
        {
            if (other._resolveType != _resolveType)
            {
                return(false);
            }

            if (other._handle != _handle)
            {
                return(false);
            }

            if (other._methodHandleOrSlotOrCodePointer != _methodHandleOrSlotOrCodePointer)
            {
                return(false);
            }

            return(other._declaringType.Equals(_declaringType));
        }
        public bool Equals(OpenMethodResolver other)
        {
            if (other._resolveType != _resolveType)
                return false;

            if (other._handle != _handle)
                return false;

            if (other._methodHandleOrSlotOrCodePointer != _methodHandleOrSlotOrCodePointer)
                return false;

            return other._declaringType.Equals(_declaringType);
        }
Exemple #3
0
 // This function is known to the IL Transformer.
 protected void InitializeOpenInstanceThunk(IntPtr functionPointer, IntPtr functionPointerThunk)
 {
     // This sort of delegate is invoked by calling the thunk function pointer with the arguments to the delegate + a reference to the delegate object itself.
     m_firstParameter = this;
     m_functionPointer = functionPointerThunk;
     OpenMethodResolver instanceMethodResolver = new OpenMethodResolver(default(RuntimeTypeHandle), functionPointer, 0);
     m_extraFunctionPointerOrData = instanceMethodResolver.ToIntPtr();
 }