Show / Hide Table of Contents

Class RuleBuilderExtensions

Extension methods for instances of IConfiguresRule<TRule>.

Inheritance
System.Object
RuleBuilderExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.Validation
Assembly: CSF.Validation.Abstractions.dll
Syntax
public static class RuleBuilderExtensions

Methods

| Improve this Doc View Source

AddDependency<T>(IConfiguresRule<T>, Func<IBuildsRelativeRuleIdentifierType, IBuildsRelativeRuleIdentifier>)

Adds a dependency to the Dependencies collection using a helper/builder function to specify the relative rule identity. Use of this method is equivalent to adding to the dependencies collection with an appropriately-constructed instance of RelativeRuleIdentifier.

Declaration
public static void AddDependency<T>(this IConfiguresRule<T> ruleBuilder, Func<IBuildsRelativeRuleIdentifierType, IBuildsRelativeRuleIdentifier> dependencyBuilderFunc)
Parameters
Type Name Description
IConfiguresRule<T> ruleBuilder

The rule builder object.

System.Func<IBuildsRelativeRuleIdentifierType, IBuildsRelativeRuleIdentifier> dependencyBuilderFunc

A function which specifies the relative identifier of the rule being added as a dependency.

Type Parameters
Name Description
T

The type of the rule being configured.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX