Functional Programming, Csharp, Dotnet, Software Development.
(!string.IsNullOrEmpty(email), "Email is empty"), email => (email.Length <= MaxLength, "Email is too long"), email => (email.Split('@').Length == 2, "Email format is invalid"), email => ( Uri.CheckHostName(email.Split('@')[1]) != UriHostNameType.Unknown, "Email domain is invalid") }; static