Skip to content

ModelExtensions

public static class ModelExtensions

Namespace: RhoMicro.BindSight.Enrichments

Inheritance:

Provides extension methods for option models.

public static IReadOnlySet<object?> GetDisallowedValues(this OptionsModelChild child)

Gets the set of disallowed values for the model.

NameTypeDescription
childOptionsModelChildThe model whose disallowed values to get.

The set of disallowed values.

public static IReadOnlySet<object?> GetAllowedValues(this OptionsModelChild child)

Gets the set of allowed values for the model.

NameTypeDescription
childOptionsModelChildThe model whose allowed values to get.

The set of allowed values.

public static IReadOnlySet<object?> GetDisallowedValues(this OptionsModelRoot root)

Gets the set of disallowed values for the model.

NameTypeDescription
rootOptionsModelRootThe model whose disallowed values to get.

The set of disallowed values.

public static IReadOnlySet<object?> GetAllowedValues(this OptionsModelRoot root)

Gets the set of allowed values for the model.

NameTypeDescription
rootOptionsModelRootThe model whose allowed values to get.

The set of allowed values.

public static string GetDescription(this OptionsModelChild child)

Gets the description for the model.

NameTypeDescription
childOptionsModelChildThe model whose description to get.

The description.

public static string GetDescription(this OptionsModelRoot root)

Gets the description for the model.

NameTypeDescription
rootOptionsModelRootThe model whose description to get.

The description.

public static string GetName(this OptionsModelChild child)

Gets the name for the model.

NameTypeDescription
childOptionsModelChildThe model whose name to get.

The name.

public static string GetName(this OptionsModelRoot root)

Gets the name for the model.

NameTypeDescription
rootOptionsModelRootThe model whose name to get.

The name.

public static string GetKey(this OptionsModelChild child)

Gets the key for the model.

NameTypeDescription
childOptionsModelChildThe model whose key to get.

The key.

public static string GetKey(this OptionsModelRoot root)

Gets the key for the model.

NameTypeDescription
rootOptionsModelRootThe model whose key to get.

The key.