public static string ToExtensionString(this ThreeMfImageContentType contentType) { switch (contentType) { case ThreeMfImageContentType.Jpeg: return(".jpg"); case ThreeMfImageContentType.Png: return(".png"); default: throw new InvalidOperationException(); } }
public static string ToContentTypeString(this ThreeMfImageContentType contentType) { switch (contentType) { case ThreeMfImageContentType.Jpeg: return(JpegContentType); case ThreeMfImageContentType.Png: return(PngContentType); default: throw new InvalidOperationException(); } }