You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <returns>The presence rule to support fluent-style method-chaining.</returns>
public static IPropertyRule<TEntity, IOptionalValue<TValue>> Specified<TEntity, TValue>(this IPropertyRule<TEntity, IOptionalValue<TValue>> rule) where TEntity : class
/// <returns>The presence rule to support fluent-style method-chaining.</returns>
/// <remarks>Call this static helper with explicit type arguments for custom struct wrappers because generic variance cannot infer their wrapped value type.</remarks>
public static IPropertyRule<TEntity, TWrapper> Specified<TEntity, TWrapper, TValue>(IPropertyRule<TEntity, TWrapper> rule) where TEntity : class where TWrapper : IOptionalValue<TValue>
=> Chain(rule, new SpecifiedRule<TEntity, TWrapper, TValue>());