OptionsTypeBindingRuleDefaults
public static class OptionsTypeBindingRuleDefaults
Namespace: RhoMicro.BindSight.Models
Inheritance:
DirectoryOptionsTypeBindingRuleDefaults
Summary
Section titled “Summary”Provides binding rule defaults.
Properties
Section titled “Properties”EmptyGenericArgumentsAccessor
Section titled “EmptyGenericArgumentsAccessor”public static Func<Type, IReadOnlySet<Type>> EmptyGenericArgumentsAccessor { get; }
Summary
Section titled “Summary”Gets a generic argument accessor that will always return an empty set.
EmptyPropertyAccessor
Section titled “EmptyPropertyAccessor”public static Func<Type, IReadOnlySet<PropertyInfo>> EmptyPropertyAccessor { get; }
Summary
Section titled “Summary”Gets a property accessor that will always return an empty set.
ItemTypeAccessor
Section titled “ItemTypeAccessor”public static Func<Type, IReadOnlySet<Type>> ItemTypeAccessor { get; }
Summary
Section titled “Summary”Gets a generic argument accessor that retrieves the single type argument of a type, or an empty set if it has no type arguments or more than one argument.
ValueTypeAccessor
Section titled “ValueTypeAccessor”public static Func<Type, IReadOnlySet<Type>> ValueTypeAccessor { get; }
Summary
Section titled “Summary”Gets a generic argument accessor that retrieves the second type argument of a type, or an empty set if it has more or less than two type arguments.
PropertiesAccessor
Section titled “PropertiesAccessor”public static Func<Type, IReadOnlySet<PropertyInfo>> PropertiesAccessor { get; }
Summary
Section titled “Summary”Gets the default property accessor that yields all bindable properties of a type.
Primitives
Section titled “Primitives”public static ImmutableHashSet<Type> Primitives { get; }
Summary
Section titled “Summary”Gets the set of bindable primitive types.
ListTypes
Section titled “ListTypes”public static ImmutableHashSet<Type> ListTypes { get; }
Summary
Section titled “Summary”Gets the set of bindable list-like types.
MutableListTypes
Section titled “MutableListTypes”public static ImmutableHashSet<Type> MutableListTypes { get; }
Summary
Section titled “Summary”Gets the set of mutable bindable list-like types.
ImmutableListTypes
Section titled “ImmutableListTypes”public static ImmutableHashSet<Type> ImmutableListTypes { get; }
Summary
Section titled “Summary”Gets the set of immutable bindable list-like types.
DictionaryTypes
Section titled “DictionaryTypes”public static ImmutableHashSet<Type> DictionaryTypes { get; }
Summary
Section titled “Summary”Gets the set of bindable dictionary-like types.
MutableDictionaryTypes
Section titled “MutableDictionaryTypes”public static ImmutableHashSet<Type> MutableDictionaryTypes { get; }
Summary
Section titled “Summary”Gets the set of mutable bindable dictionary-like types.
ImmutableDictionaryTypes
Section titled “ImmutableDictionaryTypes”public static ImmutableHashSet<Type> ImmutableDictionaryTypes { get; }
Summary
Section titled “Summary”Gets the set of immutable bindable dictionary-like types.
Methods
Section titled “Methods”IsDictionaryType(Type)
Section titled “IsDictionaryType(Type)”public static bool IsDictionaryType(Type type)
Summary
Section titled “Summary”Gets a value indicating whether a given type is a dictionary-like type.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
type | Type | The type to check. |
Returns
Section titled “Returns”true
if type is a dictionary-like type; otherwise, false
.
IsListType(Type)
Section titled “IsListType(Type)”public static bool IsListType(Type type)
Summary
Section titled “Summary”Gets a value indicating whether a given type is a list-like type.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
type | Type | The type to check. |
Returns
Section titled “Returns”true
if type is a list-like type; otherwise, false
.
GetGenericArgumentsAccessor(Type)
Section titled “GetGenericArgumentsAccessor(Type)”public static Func<Type, IReadOnlySet<Type>> GetGenericArgumentsAccessor(Type type)
Summary
Section titled “Summary”Gets the default generic arguments accessor for the given type.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
type | Type | The type to get an accessor for. |
Returns
Section titled “Returns”The default generic arguments accessor for type.
GetPropertiesAccessor(Type)
Section titled “GetPropertiesAccessor(Type)”public static Func<Type, IReadOnlySet<PropertyInfo>> GetPropertiesAccessor(Type type)
Summary
Section titled “Summary”Gets the default properties accessor for the given type.
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
type | Type | The type to get an accessor for. |
Returns
Section titled “Returns”The default properties accessor for type.