C# Class PeterLeslieMorris.Blazor.Validation.Extensions.EditContextExtensions

Show file Open project: shendongnian/code

Public Methods

Method Description
ValidateObjectTree ( EditContext editContext ) : bool

Validates an entire object tree

ValidateProperty ( EditContext editContext, FieldIdentifier fieldIdentifier ) : void

Private Methods

Method Description
NotifyPropertyChanged ( EditContext editContext, object instance, string propertyName ) : void
ValidateObject ( EditContext editContext, object instance, HashSet validatedObjects ) : void
ValidateProperty ( EditContext editContext, object instance, PropertyInfo property, HashSet validatedObjects ) : void

Method Details

ValidateObjectTree() public static method

Validates an entire object tree
public static ValidateObjectTree ( EditContext editContext ) : bool
editContext EditContext The EditContext to validate the Model of
return bool

ValidateProperty() public static method

public static ValidateProperty ( EditContext editContext, FieldIdentifier fieldIdentifier ) : void
editContext EditContext
fieldIdentifier FieldIdentifier
return void