Table of Contents

Method InvokeBoolMethod

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

methodName string

Method name.

obj object

Object instance. Optional. Default is null.

param object[]

Method parameters. Optional. Default is null.

Returns

bool?

null if method not found; otherwise result of the method invoke.

Type Parameters

T

Type 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

type Type

Type where to search the method.

methodName string

Method name.

obj object

Object instance. Optional. Default is null.

param object[]

Method parameters. Optional. Default is null.

Returns

bool?

null if method not found; otherwise result of the method invoke.