C# Class Alloy.Business.EmailAddressAttribute

Specifies the data type for a property as EmailAddress and validates it as an e-mail address.
A class with the same name and functionality exists in version 4.5 of .NET Framework, meaning that this class can be removed and it's usages replaced if changing target framework to 4.5.
Inheritance: System.ComponentModel.DataAnnotations.DataTypeAttribute
Show file Open project: episerver/EPiTranslateFlowDemo

Public Methods

Method Description
EmailAddressAttribute ( ) : System.ComponentModel.DataAnnotations
IsValid ( object value ) : bool

Method Details

EmailAddressAttribute() public method

public EmailAddressAttribute ( ) : System.ComponentModel.DataAnnotations
return System.ComponentModel.DataAnnotations

IsValid() public method

public IsValid ( object value ) : bool
value object
return bool