X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Text%2FEncoder.cs;h=de8eb3c872c323effbf39658023d9e79a051db3a;hb=7e18ed47c9606f3981e7b18cbc238d6781843153;hp=4fbe69b87a49e3f2d3ae99b2d9308f6c74314a41;hpb=7ff8f29ff29fa3f08ef305ac43ef079097323286;p=mono.git diff --git a/mcs/class/corlib/System.Text/Encoder.cs b/mcs/class/corlib/System.Text/Encoder.cs index 4fbe69b87a4..de8eb3c872c 100644 --- a/mcs/class/corlib/System.Text/Encoder.cs +++ b/mcs/class/corlib/System.Text/Encoder.cs @@ -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);