public static InvocationInfo Create( Type type, string name, Func <InvocationInfo, InvocationInfo> realFunc, InvocationSpecialType invocationSpecialType = InvocationSpecialType.None) { return(new InvocationInfo( type, name, new ArgumentInfo[0], ResultInfo.Create(typeof(void)), GenericArgumentInfo.EmptyArray, GenericArgumentInfo.EmptyArray, realFunc, invocationSpecialType)); }
public static InvocationInfo Create( Type type, string name, GenericArgumentInfo[] methodGenericArguments, ResultInfo result, Func <InvocationInfo, InvocationInfo> realFunc, InvocationSpecialType invocationSpecialType = InvocationSpecialType.None) { return(new InvocationInfo( type, name, new ArgumentInfo[0], result, methodGenericArguments, GenericArgumentInfo.EmptyArray, realFunc, invocationSpecialType)); }
public InvocationInfo( Type containingType, string methodName, ArgumentInfo[] arguments, ResultInfo result, GenericArgumentInfo[] methodGenericArguments, GenericArgumentInfo[] classGenericArguments, Func <InvocationInfo, InvocationInfo> realFunc, InvocationSpecialType invocationSpecialType = InvocationSpecialType.None) { ContainingType = containingType; MethodName = methodName; Arguments = arguments; Result = result; MethodGenericArguments = methodGenericArguments; ClassGenericArguments = classGenericArguments; RealFunc = realFunc; InvocationSpecialType = invocationSpecialType; }
public static bool IsSpecial(this InvocationSpecialType invocationSpecialType) { return(invocationSpecialType != InvocationSpecialType.None); }
public static bool IsEvent(this InvocationSpecialType invocationSpecialType) { return(invocationSpecialType == InvocationSpecialType.EventAdd || invocationSpecialType == InvocationSpecialType.EventRemove); }
public static bool IsProperty(this InvocationSpecialType invocationSpecialType) { return(invocationSpecialType == InvocationSpecialType.PropertyGet || invocationSpecialType == InvocationSpecialType.PropertySet); }