Exemplo n.º 1
0
        /// <summary>
        /// Provides the appropriate MTA-name-type value for the <paramref name="type"/>
        /// </summary>
        /// <param name="type">The MTA-name-type to translate</param>
        /// <returns>A string representation suitable for MTA-name-type header value</returns>
        public static string ToString(MtaNameType type)
        {
            switch (type)
            {
            default:
                throw new NotSupportedException();

            case MtaNameType.Dns:
                return(MtaNameType_Dns);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Provides the appropriate MTA-name-type value for the <paramref name="type"/>
        /// </summary>
        /// <param name="type">The MTA-name-type to translate</param>
        /// <returns>A string representation suitable for MTA-name-type header value</returns>
        public static string ToString(MtaNameType type)
        {
            switch (type)
            {
                default:
                    throw new NotSupportedException();

                case MtaNameType.Dns:
                    return MtaNameType_Dns;
            }
        }