Method AddMethodsFromType
AddMethodsFromType<T>(T, bool)
Adds methods from the specified type to the collection, optionally prefixing method names with the type name.
public void AddMethodsFromType<T>(T target, bool prefixTypes = false) where T : notnull
Parameters
target
TThe target object instance containing the methods.
prefixTypes
boolIndicates whether to prefix method names with the type name.
Type Parameters
T
The type from which to scan and add methods.
AddMethodsFromType(Type, object?, bool)
Adds methods from the specified type to the collection, optionally prefixing method names with the type name.
public void AddMethodsFromType(Type type, object? target, bool prefixTypes)
Parameters
type
TypeThe type from which to scan and add methods.
target
objectThe target object instance containing the methods.
prefixTypes
boolIndicates whether to prefix method names with the type name.
AddMethodsFromType(Type, object?)
Adds methods from the specified type to the collection without prefixing method names.
public void AddMethodsFromType(Type type, object? target)
Parameters
type
TypeThe type from which to scan and add methods.
target
objectThe target object instance containing the methods.
AddMethodsFromType(Type)
Adds methods from the specified type to the collection without prefixing method names.
public void AddMethodsFromType(Type type)
Parameters
type
TypeThe type from which to scan and add methods.