public static IsExtensionType ( Type type ) : bool | ||
type | Type | |
return | bool |
public void LoadExtension(Type type) { if ((type != null) && Util.IsExtensionType(type)) { foreach (MethodInfo info in type.GetMethods(BindingFlags.FlattenHierarchy | BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance)) { if (Util.IsExtensionMethod(info)) { this.GetScorpioType(info.GetParameters()[0].ParameterType).AddExtensionMethod(info); } } } }
public void LoadExtension(Type type) { if (type == null) { return; } if (!Util.IsExtensionType(type)) { return; } var methods = type.GetMethods(BindingFlag); foreach (var method in methods) { if (Util.IsExtensionMethod(method)) { GetScorpioType(method.GetParameters()[0].ParameterType).AddExtensionMethod(method); } } }