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
targetTThe target object instance containing the methods.
prefixTypesboolIndicates whether to prefix method names with the type name.
Type Parameters
TThe 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
typeTypeThe type from which to scan and add methods.
targetobjectThe target object instance containing the methods.
prefixTypesboolIndicates 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
typeTypeThe type from which to scan and add methods.
targetobjectThe 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
typeTypeThe type from which to scan and add methods.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語