public static string GetDisplayNameByEmailAddress(string emailAddress)
        {
            ParameterValidator.AssertIsNotNullOrWhiteSpace("emailAddress", emailAddress);

            return(GetActiveDirectoryPropertyValue("mail", emailAddress, "displayname"));
        }
        public static string GetNetworkNameByEmailAddress(string emailAddress)
        {
            ParameterValidator.AssertIsNotNullOrWhiteSpace("emailAddress", emailAddress);

            return(GetActiveDirectoryPropertyValue("mail", emailAddress, "sAMAccountName"));
        }
        public static string GetEmailAddressByDisplayName(string displayName)
        {
            ParameterValidator.AssertIsNotNullOrWhiteSpace("displayName", displayName);

            return(GetActiveDirectoryPropertyValue("displayname", displayName, "mail"));
        }