[corlib] Let XI and XM define their own default encoding [#29928]
[mono.git] / mcs / class / corlib / System.Text / EncodingHelper.cs
index f077e44e254a78f4f836c0b1d5f68e64d5f0bc14..8e797d8cdc5eb74dc970940a6cc5ff1aabafc196 100644 (file)
@@ -7,7 +7,7 @@ using System.Security;
 namespace System.Text
 {
 
-internal static class EncodingHelper
+internal static partial class EncodingHelper
 {
        //
        // Only internal, to be used by the class libraries: Unmarked and non-input-validating
@@ -71,6 +71,7 @@ internal static class EncodingHelper
        [MethodImpl (MethodImplOptions.InternalCall)]
        extern internal static string InternalCodePage (ref int code_page);
 
+#if !(MONOTOUCH || XAMMAC)
        internal static Encoding GetDefaultEncoding ()
        {
                Encoding enc = null;
@@ -105,6 +106,7 @@ internal static class EncodingHelper
                                                }
                return enc;
        }
+#endif
 
        // Loaded copy of the "I18N" assembly.  We need to move
        // this into a class in "System.Private" eventually.