Class RuleIdentifier
A model for information which uniquely identifies a validation rule within the validation process.
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)
Namespace: CSF.Validation.Rules
Assembly: CSF.Validation.Abstractions.dll
Syntax
public class RuleIdentifier : RuleIdentifierBase
Constructors
| Improve this Doc View SourceRuleIdentifier(ManifestRule, Object)
Initializes a new instance of RuleIdentifier based upon an instance of ManifestRule.
Declaration
public RuleIdentifier(ManifestRule manifestRule, object objectIdentity)
Parameters
Type | Name | Description |
---|---|---|
ManifestRule | manifestRule | The manifest rule. |
System.Object | objectIdentity | The identity of the validated object. |
RuleIdentifier(Type, Type, Object, String, String)
Initializes a new instance of RuleIdentifier.
Declaration
public RuleIdentifier(Type ruleType, Type validatedValueType, object objectIdentity, string memberName = null, string ruleName = null)
Parameters
Type | Name | Description |
---|---|---|
System.Type | ruleType | The rule type. |
System.Type | validatedValueType | The type of value that the rule validates. |
System.Object | objectIdentity | The object identity. |
System.String | memberName | An optional member name. |
System.String | ruleName | An optional rule name. |
Properties
| Improve this Doc View SourceMemberName
Gets the name of the member whose value is being validated by this rule.
Declaration
public string MemberName { get; }
Property Value
Type | Description |
---|---|
System.String |
ObjectIdentity
The unique identity of the object being validated.
Declaration
public object ObjectIdentity { get; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourceToString()
Gets a string which represents the current rule identifier.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A human-readable string. |
Overrides
System.Object.ToString()