コード例 #1
0
        protected EncodingType GetSourceEncoding(Object additionalInformation)
        {
            EncodingType sourceEncoding = EncodingType.PLAIN;

            if (additionalInformation is int)
            {
                int encoding = (int)additionalInformation;
                sourceEncoding = EncodingInformation.GetSourceEncoding(encoding);
            }
            return(sourceEncoding);
        }
コード例 #2
0
        protected EncodingType GetTargetEncoding(Object additionalInformation)
        {
            EncodingType targetEncoding = EncodingType.PLAIN;

            if (additionalInformation is int)
            {
                int encoding = (int)additionalInformation;
                targetEncoding = EncodingInformation.GetTargetEncoding(encoding);
            }
            return(targetEncoding);
        }