ValidationUtils.IsValid Method
- Namespace:
- Weavy.Core.Utils
- Assembly:
- Weavy.Core.dll
Overloads
Is |
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type. |
Is |
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type. |
IsValid(IValidatableObject)
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
public static bool IsValid(this IValidatableObject instance)
Parameters
- instance
- System.ComponentModel.DataAnnotations.IValidatableObject
The object to validate.
Returns
bool
IsValid(object)
Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
public static bool IsValid(this object instance)
Parameters
- instance
- object
The object to validate.
Returns
bool