Skip to content

StaticAbstractEx<TClass> ​

Kind: Static class

Namespace: CrowdControl.Common

Public Static Functions

void

RequireInterface<TInterface>()

Requires an interface to be satisfied.

void

RequireInterface(Type interfaceType)

Requires an interface to be satisfied.

bool

SatisfiesInterface<TInterface>()

Checks if an interface is satisfied.

bool

SatisfiesInterface(Type interfaceType)

Checks if an interface is satisfied.

void

RequireMethod(string methodName, Type[] params, Type returnType)

Requires a public static method with the specified name, parameters, and return type to be present.

bool

HasMethod(string methodName, Type[] params, Type returnType)

Requires a public static method with the specified name, parameters, and return type to be present.

bool

HasMethod(string methodName, IEnumerable params, Type returnType)

Requires a public static method with the specified name, parameters, and return type to be present.

bool

HasMethod(string methodName, ReadOnlySpan params, Type returnType)

Requires a public static method with the specified name, parameters, and return type to be present.

bool

HasMethod(string methodName, IEnumerable params, Type returnType)

Requires a public static method with the specified name, parameters, and return type to be present.

bool

HasMethod(string methodName, ReadOnlySpan params, Type returnType)

Requires a public static method with the specified name, parameters, and return type to be present.

void

RequireProperty(string propertyName, Type propertyType)

Requires a public static property with the specified name and type to be present.

void

RequireProperty<TProperty>(string propertyName)

Requires a public static property with the specified name and type to be present.

bool

HasProperty(string propertyName, Type propertyType)

Checks if a public static property with the specified name and type is present.

bool

HasProperty<TProperty>(string propertyName)

Checks if a public static property with the specified name and type is present.

bool

TryGetPropertyValue<TProperty>(string propertyName, TProperty out value)

Checks if a public static property with the specified name and type is present, returning its value if found.