// Determine if two Encoding objects are equal.
        public override bool Equals(object obj)
        {
            var encoding = obj as Encoding;

            return(encoding != null && codePage == encoding.codePage && DecoderFallback.Equals(encoding.DecoderFallback) && EncoderFallback.Equals(encoding.EncoderFallback));
        }
        public override bool Equals(object obj)
        {
            var encoding = obj as UTF7Encoding;

            return(encoding != null && allowOptionals == encoding.allowOptionals && EncoderFallback.Equals(encoding.EncoderFallback) && DecoderFallback.Equals(encoding.DecoderFallback));
        }