Exemple #1
0
        public EncoderCharEntityFallbackBuffer(EncoderCharEntityFallback fallback)
        {
            if (fallback == null)
            {
                throw new ArgumentNullException("fallback");
            }

            this.fallbackCount = -1;
            this.fallbackIndex = -1;

            this.unknownCharCount = 0;
            this.threshold        = fallback.Threshold;

            this.buffer = new StringBuilder(10);
            this.valid  = true;
        }
        public EncoderCharEntityFallbackBuffer(EncoderCharEntityFallback fallback)
        {
            if (fallback == null)
            {
                throw new ArgumentNullException("fallback");
            }

            this.fallbackCount = -1;
            this.fallbackIndex = -1;

            this.unknownCharCount = 0;
            this.threshold = fallback.Threshold;

            this.buffer = new StringBuilder(10);
            this.valid = true;
        }