OptionsTypeBindingRule
public sealed class OptionsTypeBindingRule
Namespace: RhoMicro.BindSight.Models
Inheritance:
Summary
Section titled “Summary”Provides access to the binding behavior of a given options type.
Constructors
Section titled “Constructors”OptionsTypeBindingRule(Type, Func<Type, IReadOnlySet<PropertyInfo>>, Func<Type, IReadOnlySet<Type>>)
Section titled “OptionsTypeBindingRule(Type, Func<Type, IReadOnlySet<PropertyInfo>>, Func<Type, IReadOnlySet<Type>>)”public OptionsTypeBindingRule(Type type, Func<Type, IReadOnlySet<PropertyInfo>> boundPropertiesAccessor, Func<Type, IReadOnlySet<Type>> boundGenericArgumentsAccessor)
Summary
Section titled “Summary”Provides access to the binding behavior of a given options type.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
boundGenericArgumentsAccessor | Func<Type, IReadOnlySet<Type>> | The accessor providing access to the generic arguments of typethat are bound. |
boundPropertiesAccessor | Func<Type, IReadOnlySet<PropertyInfo>> | The accessor providing access to the properties of typethat are bound. |
type | Type | The type to provide binding behavior rules for. |
Properties
Section titled “Properties”public Type Type { get; }
Summary
Section titled “Summary”Gets the type this rule is defining binding accessors for.
BoundPropertiesAccessor
Section titled “BoundPropertiesAccessor”public Func<Type, IReadOnlySet<PropertyInfo>> BoundPropertiesAccessor { get; }
Summary
Section titled “Summary”Gets the accessor providing access to the bound properties of OptionsTypeBindingRule.Type.
BoundGenericArgumentsAccessor
Section titled “BoundGenericArgumentsAccessor”public Func<Type, IReadOnlySet<Type>> BoundGenericArgumentsAccessor { get; }
Summary
Section titled “Summary”Gets the accessor providing access to the bound generic arguments of OptionsTypeBindingRule.Type.
Methods
Section titled “Methods”Equals(OptionsTypeBindingRule)
Section titled “Equals(OptionsTypeBindingRule)”public bool Equals(OptionsTypeBindingRule? other)
Equals(object)
Section titled “Equals(object)”public override bool Equals(object? obj)
Summary
Section titled “Summary”Determines whether the specified object is equal to the current object.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
obj | Object | The object to compare with the current object. |
Returns
Section titled “Returns”true
if the specified object is equal to the current object; otherwise, false
.
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()
Summary
Section titled “Summary”Serves as the default hash function.
Returns
Section titled “Returns”A hash code for the current object.
CreateDefault(Type)
Section titled “CreateDefault(Type)”public static OptionsTypeBindingRule CreateDefault(Type type)
Summary
Section titled “Summary”Creates the default binding rule for a type.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
type | Type | The type to create the default binding rule for. |
Returns
Section titled “Returns”The default binding rule for type.