ValidationHelper.Validate Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

Validate(IValidatableObject) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
Validate(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.

Validate(IValidatableObject)

Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.

public static void Validate(this IValidatableObject instance)

Parameters

instance
System.ComponentModel.DataAnnotations.IValidatableObject

Validate(Object)

Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.

public static void Validate(object instance)

Parameters

instance
System.Object