ModelExtensions
public static class ModelExtensions
Namespace: RhoMicro.BindSight.Enrichments
Inheritance:
DirectoryModelExtensions
Summary
Section titled “Summary”Provides extension methods for option models.
Methods
Section titled “Methods”GetDisallowedValues(OptionsModelChild)
Section titled “GetDisallowedValues(OptionsModelChild)”public static IReadOnlySet<object?> GetDisallowedValues(this OptionsModelChild child)
Summary
Section titled “Summary”Gets the set of disallowed values for the model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
child | OptionsModelChild | The model whose disallowed values to get. |
Returns
Section titled “Returns”The set of disallowed values.
GetAllowedValues(OptionsModelChild)
Section titled “GetAllowedValues(OptionsModelChild)”public static IReadOnlySet<object?> GetAllowedValues(this OptionsModelChild child)
Summary
Section titled “Summary”Gets the set of allowed values for the model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
child | OptionsModelChild | The model whose allowed values to get. |
Returns
Section titled “Returns”The set of allowed values.
GetDisallowedValues(OptionsModelRoot)
Section titled “GetDisallowedValues(OptionsModelRoot)”public static IReadOnlySet<object?> GetDisallowedValues(this OptionsModelRoot root)
Summary
Section titled “Summary”Gets the set of disallowed values for the model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
root | OptionsModelRoot | The model whose disallowed values to get. |
Returns
Section titled “Returns”The set of disallowed values.
GetAllowedValues(OptionsModelRoot)
Section titled “GetAllowedValues(OptionsModelRoot)”public static IReadOnlySet<object?> GetAllowedValues(this OptionsModelRoot root)
Summary
Section titled “Summary”Gets the set of allowed values for the model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
root | OptionsModelRoot | The model whose allowed values to get. |
Returns
Section titled “Returns”The set of allowed values.
GetDescription(OptionsModelChild)
Section titled “GetDescription(OptionsModelChild)”public static string GetDescription(this OptionsModelChild child)
Summary
Section titled “Summary”Gets the description for the model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
child | OptionsModelChild | The model whose description to get. |
Returns
Section titled “Returns”The description.
GetDescription(OptionsModelRoot)
Section titled “GetDescription(OptionsModelRoot)”public static string GetDescription(this OptionsModelRoot root)
Summary
Section titled “Summary”Gets the description for the model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
root | OptionsModelRoot | The model whose description to get. |
Returns
Section titled “Returns”The description.
GetName(OptionsModelChild)
Section titled “GetName(OptionsModelChild)”public static string GetName(this OptionsModelChild child)
Summary
Section titled “Summary”Gets the name for the model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
child | OptionsModelChild | The model whose name to get. |
Returns
Section titled “Returns”The name.
GetName(OptionsModelRoot)
Section titled “GetName(OptionsModelRoot)”public static string GetName(this OptionsModelRoot root)
Summary
Section titled “Summary”Gets the name for the model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
root | OptionsModelRoot | The model whose name to get. |
Returns
Section titled “Returns”The name.
GetKey(OptionsModelChild)
Section titled “GetKey(OptionsModelChild)”public static string GetKey(this OptionsModelChild child)
Summary
Section titled “Summary”Gets the key for the model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
child | OptionsModelChild | The model whose key to get. |
Returns
Section titled “Returns”The key.
GetKey(OptionsModelRoot)
Section titled “GetKey(OptionsModelRoot)”public static string GetKey(this OptionsModelRoot root)
Summary
Section titled “Summary”Gets the key for the model.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
root | OptionsModelRoot | The model whose key to get. |
Returns
Section titled “Returns”The key.