コード例 #1
0
ファイル: DSNStandard.cs プロジェクト: blinds52/nhind
        /// <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);
            }
        }
コード例 #2
0
ファイル: DSNStandard.cs プロジェクト: DM-TOR/nhin-d
        /// <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;
            }
        }