Class PropertyNotNullValidator
Validator to check whether a property is null
Inheritance
System.Object
PropertyNotNullValidator
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.UI.MVC
Assembly: Simplic.UI.dll
Syntax
public class PropertyNotNullValidator : IPropertyValidator
Properties
| Improve this Doc View SourceMessage
Gets the error message
Declaration
[Browsable(false)]
public IValidationErrorMessage Message { get; }
Property Value
Type | Description |
---|---|
IValidationErrorMessage |
Name
Gets the name of the validator
Declaration
[Browsable(false)]
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceValidate(Object)
Gets whether value is null
Declaration
public bool Validate(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Value to validate |
Returns
Type | Description |
---|---|
System.Boolean | If value == null that false well be returned, else false |