protected EncodingType GetSourceEncoding(Object additionalInformation) { EncodingType sourceEncoding = EncodingType.PLAIN; if (additionalInformation is int) { int encoding = (int)additionalInformation; sourceEncoding = EncodingInformation.GetSourceEncoding(encoding); } return(sourceEncoding); }
protected EncodingType GetTargetEncoding(Object additionalInformation) { EncodingType targetEncoding = EncodingType.PLAIN; if (additionalInformation is int) { int encoding = (int)additionalInformation; targetEncoding = EncodingInformation.GetTargetEncoding(encoding); } return(targetEncoding); }