Table of Contents

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

callback Action<T>

Output callback (输出的回调).

checkType Predicate<Type>

Check type predicate (检查类型的谓词). Default value is TypeInvokeGetIsSupported(Type).

types IEnumerable<Type>

Source type list (源类型列表).

methodNames string[]

Method name list (方法名列表).

Returns

int

Returns method count (返回方法数量)

Type Parameters

T

Delegate 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

callback Action<T>

Output callback (输出的回调).

types IEnumerable<Type>

Source type list (源类型列表).

methodNames string[]

Method name list (方法名列表).

Returns

int

Returns method count (返回方法数量)

Type Parameters

T

Delegate type (委托类型).