Method InvokeBoolMethod
InvokeBoolMethod<T>(string, object?, object[]?)
Invokes method with boolean result through the reflection.
public static bool? InvokeBoolMethod<T>(string methodName, object? obj = null, object[]? param = null)
Parameters
methodNamestringMethod name.
objobjectObject instance. Optional. Default is null.
paramobject[]Method parameters. Optional. Default is null.
Returns
- bool?
nullif method not found; otherwise result of the method invoke.
Type Parameters
TType of object.
InvokeBoolMethod(Type?, string, object?, object[]?)
Invokes method with boolean result through the reflection.
public static bool? InvokeBoolMethod(Type? type, string methodName, object? obj = null, object[]? param = null)
Parameters
typeTypeType where to search the method.
methodNamestringMethod name.
objobjectObject instance. Optional. Default is null.
paramobject[]Method parameters. Optional. Default is null.
Returns
- bool?
nullif method not found; otherwise result of the method invoke.