Implemented method 'IsUnknownSurrogate()'.
[mono.git] / mcs / class / corlib / System.Text / EncoderFallbackException.cs
index 506f05922ba234d0fdd0970891434e40b90a480d..c9b34b845c43e70c1dfdd3ff9eb625d8b599e5ec 100644 (file)
@@ -52,6 +52,7 @@ namespace System.Text
                        : base (null)
                {
                        char_unknown = charUnknown;
+                       surrogate = false;
                        this.index = index;
                }
 
@@ -61,10 +62,12 @@ namespace System.Text
                {
                        char_unknown_high = charUnknownHigh;
                        char_unknown_low = charUnknownLow;
+                       surrogate = true;
                        this.index = index;
                }
 
                char char_unknown, char_unknown_high, char_unknown_low;
+               bool surrogate;
                int index = - 1;
 
                public char CharUnknown {
@@ -84,10 +87,9 @@ namespace System.Text
                        get { return index; }
                }
 
-               [MonoTODO]
                public bool IsUnknownSurrogate ()
                {
-                       throw new NotImplementedException ();
+                       return surrogate;
                }
        }
 }