Class SettingsValidator
Inheritance
System.Object
SettingsValidator
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: Crosser.EdgeNode.Common.Abstractions.Utilities.Validation.SettingsValidator
Assembly: Crosser.EdgeNode.Common.Abstractions.dll
Syntax
public class SettingsValidator
Constructors
SettingsValidator()
Declaration
public SettingsValidator()
Fields
prefix
Declaration
public string prefix
Field Value
System.String
|
Methods
AddError(String, String)
Declaration
public void AddError(string field, string message)
Parameters
System.String
field
|
System.String
message
|
Errors()
Declaration
public List<IValidationError> Errors()
Returns
System.Collections.Generic.List<IValidationError>
|
Report()
ReportFirstErrorWithFieldName()
Declaration
public (bool exists, string field, string message)ReportFirstErrorWithFieldName()
Returns
System.ValueTuple<System.Boolean, System.String, System.String>
|
Validate(String, String)
Declaration
public StringValidator Validate(string field, string value)
Parameters
System.String
field
|
System.String
value
|
Returns
StringValidator
|
Validate<T>(String, T)
Declaration
public NumberValidator<T> Validate<T>(string field, T value)
where T : IComparable
Parameters
System.String
field
|
T
value
|
Returns
NumberValidator<T>
|
Type Parameters
T
|