merge -r 53370:58178
[mono.git] / mcs / class / corlib / System.Text / Encoder.cs
index 4fbe69b87a49e3f2d3ae99b2d9308f6c74314a41..de8eb3c872c323effbf39658023d9e79a051db3a 100644 (file)
@@ -34,6 +34,19 @@ public abstract class Encoder
        // Constructor.
        protected Encoder() {}
 
+#if NET_2_0
+       EncoderFallback fallback;
+
+       public EncoderFallback Fallback {
+               get { return fallback; }
+               set {
+                       if (value == null)
+                               throw new ArgumentNullException ();
+                       fallback = value;
+               }
+       }
+#endif
+
        // Get the number of bytes needed to encode a buffer.
        public abstract int GetByteCount(char[] chars, int index,
                                                                         int count, bool flush);