public override bool Equals(Object value)
 {
     InternalDecoderBestFitFallback that = value as InternalDecoderBestFitFallback;
     if (that != null)
     {
         return (encoding.CodePage == that.encoding.CodePage);
     }
     return (false);
 }
 public InternalDecoderBestFitFallbackBuffer(InternalDecoderBestFitFallback fallback)
 {
     this.oFallback = fallback;
     if (this.oFallback.arrayBestFit == null)
     {
         lock (InternalSyncObject)
         {
             if (this.oFallback.arrayBestFit == null)
             {
                 this.oFallback.arrayBestFit = fallback.encoding.GetBestFitBytesToUnicodeData();
             }
         }
     }
 }
 public InternalDecoderBestFitFallbackBuffer(InternalDecoderBestFitFallback fallback)
 {
     this.oFallback = fallback;
     if (this.oFallback.arrayBestFit == null)
     {
         lock (InternalSyncObject)
         {
             if (this.oFallback.arrayBestFit == null)
             {
                 this.oFallback.arrayBestFit = fallback.encoding.GetBestFitBytesToUnicodeData();
             }
         }
     }
 }
Пример #4
0
        // Constructor
        public InternalDecoderBestFitFallbackBuffer(InternalDecoderBestFitFallback fallback)
        {
            this.oFallback = fallback;

            if (oFallback.arrayBestFit == null)
            {
                // Lock so we don't confuse ourselves.
                lock(InternalSyncObject)
                {
                    // Double check before we do it again.
                    if (oFallback.arrayBestFit == null)
                        oFallback.arrayBestFit = fallback.encoding.GetBestFitBytesToUnicodeData();
                }
            }
        }
        // Constructor
        public InternalDecoderBestFitFallbackBuffer(InternalDecoderBestFitFallback fallback)
        {
            _oFallback = fallback;

            if (_oFallback.arrayBestFit == null)
            {
                // Lock so we don't confuse ourselves.
                lock (InternalSyncObject)
                {
                    // Double check before we do it again.
                    if (_oFallback.arrayBestFit == null)
                        _oFallback.arrayBestFit = fallback.encoding.GetBestFitBytesToUnicodeData();
                }
            }
        }
Пример #6
0
        // Token: 0x06006667 RID: 26215 RVA: 0x001591C8 File Offset: 0x001573C8
        public override bool Equals(object value)
        {
            InternalDecoderBestFitFallback internalDecoderBestFitFallback = value as InternalDecoderBestFitFallback;

            return(internalDecoderBestFitFallback != null && this.encoding.CodePage == internalDecoderBestFitFallback.encoding.CodePage);
        }
        public override bool Equals(object value)
        {
            InternalDecoderBestFitFallback fallback = value as InternalDecoderBestFitFallback;

            return((fallback != null) && (this.encoding.CodePage == fallback.encoding.CodePage));
        }