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

The object to validate.

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
object

The object to validate.