Alloy.Business.EmailAddressAttribute.IsValid C# (CSharp) Method

IsValid() public method

public IsValid ( object value ) : bool
value object
return bool
        public override bool IsValid(object value)
        {
            if (value == null)
            {
                return true;
            }
            var input = value as string;
            return ((input != null) && (ValidationRegex.Match(input).Length > 0));
        }