* of icalls, do not require an increment.
*/
#pragma warning disable 169
- private const int mono_corlib_version = 95;
+ private const int mono_corlib_version = 96;
#pragma warning restore 169
[ComVisible (true)]
get;
}
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ extern static string GetNewLine ();
+
+ static string nl;
/// <summary>
/// Gets the standard new line value
/// </summary>
- public extern static string NewLine {
- [MethodImplAttribute (MethodImplOptions.InternalCall)]
- get;
+ public static string NewLine {
+ get {
+ if (nl != null)
+ return nl;
+
+ nl = GetNewLine ();
+ return nl;
+ }
}
//
ICALL(ENV_3, "GetEnvironmentVariableNames", ves_icall_System_Environment_GetEnvironmentVariableNames)
ICALL(ENV_4, "GetLogicalDrivesInternal", ves_icall_System_Environment_GetLogicalDrives )
ICALL(ENV_5, "GetMachineConfigPath", ves_icall_System_Configuration_DefaultConfig_get_machine_config_path)
+ICALL(ENV_51, "GetNewLine", ves_icall_System_Environment_get_NewLine)
ICALL(ENV_6, "GetOSVersionString", ves_icall_System_Environment_GetOSVersionString)
ICALL(ENV_6a, "GetPageSize", mono_pagesize)
ICALL(ENV_7, "GetWindowsFolderPath", ves_icall_System_Environment_GetWindowsFolderPath)
ICALL(ENV_9, "get_ExitCode", mono_environment_exitcode_get)
ICALL(ENV_10, "get_HasShutdownStarted", ves_icall_System_Environment_get_HasShutdownStarted)
ICALL(ENV_11, "get_MachineName", ves_icall_System_Environment_get_MachineName)
-ICALL(ENV_12, "get_NewLine", ves_icall_System_Environment_get_NewLine)
ICALL(ENV_13, "get_Platform", ves_icall_System_Environment_get_Platform)
ICALL(ENV_14, "get_ProcessorCount", mono_cpu_count)
ICALL(ENV_15, "get_TickCount", mono_msec_ticks)