Monobjc.Generators.MethodTuple.GetFunction C# (CSharp) Method

GetFunction() public method

public GetFunction ( Type type ) : IntPtr
type System.Type
return System.IntPtr
		public IntPtr GetFunction (Type type)
		{
			// As we cannot get a function pointer from a dynamic FieldInfo,
			// we need to retrieve the defined FieldInfo.
			FieldInfo fieldInfo = type.GetField (this.ProxyDelegateFieldInfo.Name);
			return Marshal.GetFunctionPointerForDelegate ((Delegate)fieldInfo.GetValue (null));
		}
	}
MethodTuple