C# Class Tortuga.Anchor.Modeling.Internals.ErrorsDictionary

Show file Open project: docevaad/Anchor Class Usage Examples

Public Methods

Method Description
Clear ( ) : ErrorsDictionaryUpdateType

Clears all errors

GetAllErrors ( ) : ReadOnlyCollection

Gets all of the errors.

HasErrors ( ) : bool

Determines whether this instance has errors.

SetErrors ( IList errors, HashSet &affectedProperties ) : ErrorsDictionaryUpdateType

Set the errors at the object level

SetErrors ( string propertyName, IList errors ) : ErrorsDictionaryUpdateType

Sets the errors at the property level

Private Methods

Method Description
GetErrors ( string propertyName ) : ReadOnlyCollection

Gets the errors for a given property.

Method Details

Clear() public method

Clears all errors
public Clear ( ) : ErrorsDictionaryUpdateType
return ErrorsDictionaryUpdateType

GetAllErrors() public method

Gets all of the errors.
public GetAllErrors ( ) : ReadOnlyCollection
return ReadOnlyCollection

HasErrors() public method

Determines whether this instance has errors.
public HasErrors ( ) : bool
return bool

SetErrors() public method

Set the errors at the object level
public SetErrors ( IList errors, HashSet &affectedProperties ) : ErrorsDictionaryUpdateType
errors IList The errors.
affectedProperties HashSet The affected properties.
return ErrorsDictionaryUpdateType

SetErrors() public method

Sets the errors at the property level
public SetErrors ( string propertyName, IList errors ) : ErrorsDictionaryUpdateType
propertyName string Name of the property.
errors IList The errors.
return ErrorsDictionaryUpdateType