<Member Name="get_TraceLevel" />
</Type>
<!--End of PFX types -->
- <Type Name="System.Console">
+ <Type Name="System.LowLevelConsole">
<Member Name="Write(System.String)" />
<Member Name="WriteLine(System.String)" />
<Member Name="WriteLine" />
namespace System
{
//
- // Simple limited console class for internal printf-style debugging in mscorlib
- // and low-level tests that just want to depend on mscorlib.
+ // Simple limited console class for internal printf-style debugging in System.Private.CoreLib
+ // and low-level tests that want to call System.Private.CoreLib directly
//
- public static class Console
+ public static class LowLevelConsole
{
- static SafeFileHandle _outputHandle;
-
- static Console()
- {
- _outputHandle = new SafeFileHandle(Win32Native.GetStdHandle(Win32Native.STD_OUTPUT_HANDLE), false);
- }
+ private static readonly SafeFileHandle _outputHandle =
+ new SafeFileHandle(Win32Native.GetStdHandle(Win32Native.STD_OUTPUT_HANDLE), false);
public static unsafe void Write(string s)
{
Write(Environment.NewLine);
}
}
+
+ //
+ // Internal wrapper with the regular name for convenience. Note that it cannot be public to avoid colliding
+ // with the full Console type.
+ //
+ internal static class Console
+ {
+ public static void Write(string s)
+ {
+ LowLevelConsole.Write(s);
+ }
+
+ public static void WriteLine(string s)
+ {
+ LowLevelConsole.WriteLine(s);
+ }
+
+ public static void WriteLine()
+ {
+ LowLevelConsole.WriteLine();
+ }
+ }
}
throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesHeaderCorrupted"));
}
BCLDebug.Log("RESMGRFILEFORMAT", "ReadResources: Expecting " + _numResources + " resources.");
-#if _DEBUG
+#if RESOURCE_FILE_FORMAT_DEBUG
if (ResourceManager.DEBUG >= 4)
Console.WriteLine("ResourceReader::ReadResources - Reading in "+_numResources+" resources");
#endif
SkipString();
}
-#if _DEBUG
+#if RESOURCE_FILE_FORMAT_DEBUG
if (ResourceManager.DEBUG >= 5)
Console.WriteLine("ResourceReader::ReadResources - Reading in "+numTypes+" type table entries");
#endif