Пример #1
0
        public static string ToExtensionString(this ThreeMfImageContentType contentType)
        {
            switch (contentType)
            {
            case ThreeMfImageContentType.Jpeg:
                return(".jpg");

            case ThreeMfImageContentType.Png:
                return(".png");

            default:
                throw new InvalidOperationException();
            }
        }
Пример #2
0
        public static string ToContentTypeString(this ThreeMfImageContentType contentType)
        {
            switch (contentType)
            {
            case ThreeMfImageContentType.Jpeg:
                return(JpegContentType);

            case ThreeMfImageContentType.Png:
                return(PngContentType);

            default:
                throw new InvalidOperationException();
            }
        }