Method GetSupportedMethodListCallback
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
GetSupportedMethodListCallback<T>(Action<T>, Predicate<Type>?, IEnumerable<Type>, params string[])
Get supported method list and output callback (取得支持的方法列表并输出到 callback ).
public static int GetSupportedMethodListCallback<T>(Action<T> callback, Predicate<Type>? checkType, IEnumerable<Type> types, params string[] methodNames) where T : Delegate
Parameters
callbackAction<T>Output callback (输出的回调).
checkTypePredicate<Type>Check type predicate (检查类型的谓词). Default value is TypeInvokeGetIsSupported(Type).
typesIEnumerable<Type>Source type list (源类型列表).
methodNamesstring[]Method name list (方法名列表).
Returns
- int
Returns method count (返回方法数量)
Type Parameters
TDelegate type (委托类型).
GetSupportedMethodListCallback<T>(Action<T>, IEnumerable<Type>, params string[])
Get supported method list and output callback (取得支持的方法列表并输出到 callback ).
public static int GetSupportedMethodListCallback<T>(Action<T> callback, IEnumerable<Type> types, params string[] methodNames) where T : Delegate
Parameters
callbackAction<T>Output callback (输出的回调).
typesIEnumerable<Type>Source type list (源类型列表).
methodNamesstring[]Method name list (方法名列表).
Returns
- int
Returns method count (返回方法数量)
Type Parameters
TDelegate type (委托类型).