Sisk

Method

JsonRpcMethodCollection.AddMethodsFromType<T>

Namespace
Sisk.JsonRPC
Assembly
Sisk.JsonRPC.dll

AddMethodsFromType<T>(T, bool) #

Adds methods from the specified type to the collection, optionally prefixing method names with the type name.

C#
public void AddMethodsFromType<T>(T target, bool prefixTypes = false) where T : notnull

Parameters #

target T

The target object instance containing the methods.

prefixTypes bool

Indicates 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.

C#
public void AddMethodsFromType(Type type, object? target, bool prefixTypes)

Parameters #

type Type

The type from which to scan and add methods.

target object?

The target object instance containing the methods.

prefixTypes bool

Indicates 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.

C#
public void AddMethodsFromType(Type type, object? target)

Parameters #

type Type

The type from which to scan and add methods.

target object?

The target object instance containing the methods.

AddMethodsFromType(Type) #

Adds methods from the specified type to the collection without prefixing method names.

C#
public void AddMethodsFromType(Type type)

Parameters #

type Type

The type from which to scan and add methods.

Type to search the documentation and the API reference.