* OTHER DEALINGS IN THE SOFTWARE.
*/
-#if NET_2_0
-
namespace System.Text
{
preamble[1] = (byte)0xFE;
}
return preamble;
- } else {
- return new byte [0];
}
+
+ return EmptyArray<byte>.Value;
}
// Determine if this object is equal to another.
} // class UTF32Decoder
-#if NET_2_0
[CLSCompliantAttribute(false)]
public unsafe override int GetByteCount (char *chars, int count)
{
throw new ArgumentNullException ("chars");
return count * 4;
}
-#else
- public override byte [] GetBytes (String s)
- {
- return base.GetBytes (s);
- }
-#endif
-#if NET_2_0
// a bunch of practically missing implementations (but should just work)
public override int GetByteCount (string s)
{
return base.GetEncoder ();
}
-#endif
-
}; // class UTF32Encoding
}; // namespace System.Text
-
-#endif