Beispiel #1
0
        public static string ToName(PlatformID platformID, ushort encodingID)
        {
            switch (platformID)
            {
            case PlatformID.Unicode:
                return(Unicode.ToName(encodingID));

            case PlatformID.Macintosh:
                return(Macintosh.ToName(encodingID));

            case PlatformID.ISO:
                return(ISO.ToName(encodingID));

            case PlatformID.Windows:
                return(Windows.ToName(encodingID));

            case PlatformID.Custom:
                return(Custom.ToName(encodingID));
            }
            return(encodingID.ToString("X4"));
        }