/// <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); } }
/// <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; } }