Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 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);
 }