62 references to NewLineConst
System.Private.CoreLib (62)
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Console.cs (3)
18Write(s + Environment.NewLineConst); 22Write(Environment.NewLineConst); 28Write(Environment.NewLineConst);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
376text.Append(Environment.NewLineConst + InnerExceptionPrefix);
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (1)
181SR.AppDomain_Name + FriendlyName + Environment.NewLineConst + SR.AppDomain_NoContextPolicies;
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
81return s + Environment.NewLineConst + valueMessage;
src\runtime\src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (5)
101s += Environment.NewLineConst + SR.Format(SR.IO_FileName_Name, _fileName); 104s += Environment.NewLineConst + SR.Format(SR.IO_FileLoad_RequestedBy, _requestingAssemblyChain); 110s += Environment.NewLineConst + StackTrace; 115s += Environment.NewLineConst + Environment.NewLineConst + _fusionLog;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (8)
36WriteLine(SR.DebugAssertBanner + Environment.NewLineConst 37+ SR.DebugAssertShortMessage + Environment.NewLineConst 38+ message + Environment.NewLineConst 39+ SR.DebugAssertLongMessage + Environment.NewLineConst 40+ detailMessage + Environment.NewLineConst 59if (message.EndsWith(Environment.NewLineConst, StringComparison.Ordinal)) 68Write(message + Environment.NewLineConst); 91s += Environment.NewLineConst;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.cs (1)
213public static string NewLine => NewLineConst;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Exception.cs (8)
142length += Environment.NewLineConst.Length + InnerExceptionPrefix.Length + innerExceptionString.Length + Environment.NewLineConst.Length + 3 + endOfInnerExceptionResource.Length; 146length += Environment.NewLineConst.Length + stackTrace.Length; 163Write(Environment.NewLineConst, ref resultSpan); 166Write(Environment.NewLineConst, ref resultSpan); 172Write(Environment.NewLineConst, ref resultSpan); 261_remoteStackTraceString = stackTrace + Environment.NewLineConst + SR.Exception_EndStackTraceFromPreviousThrow + Environment.NewLineConst;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (1)
103return s + Environment.NewLineConst + valueMessage;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (3)
59s += Environment.NewLineConst + SR.Format(SR.IO_DirectoryName_Name, DirectoryPath); 62s += Environment.NewLineConst + InnerExceptionPrefix + InnerException.ToString(); 65s += Environment.NewLineConst + StackTrace;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (6)
56s += Environment.NewLineConst + SR.Format(SR.IO_FileName_Name, FileName); 59s += Environment.NewLineConst + SR.Format(SR.IO_FileLoad_RequestedBy, _requestingAssemblyChain); 62s += Environment.NewLineConst + InnerExceptionPrefix + InnerException.ToString(); 65s += Environment.NewLineConst + StackTrace; 70s += Environment.NewLineConst + Environment.NewLineConst + FusionLog;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (6)
79s += Environment.NewLineConst + SR.Format(SR.IO_FileName_Name, FileName); 82s += Environment.NewLineConst + SR.Format(SR.IO_FileLoad_RequestedBy, _requestingAssemblyChain); 85s += Environment.NewLineConst + InnerExceptionPrefix + InnerException.ToString(); 88s += Environment.NewLineConst + StackTrace; 93s += Environment.NewLineConst + Environment.NewLineConst + FusionLog;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (6)
27private static readonly char[] s_coreNewLine = Environment.NewLineConst.ToCharArray(); 40private string CoreNewLineStr = Environment.NewLineConst; 117value ??= Environment.NewLineConst; 123value == Environment.NewLineConst ? s_coreNewLine : // current OS default 124Environment.NewLineConst == "\r\n" && value == "\n" ? (s_otherCoreNewLine ??= ['\n']) : // other OS default 125Environment.NewLineConst == "\n" && value == "\r\n" ? (s_otherCoreNewLine ??= ['\r', '\n']) : // other OS default
src\runtime\src\libraries\System.Private.CoreLib\src\System\ObjectDisposedException.cs (1)
100return base.Message + Environment.NewLineConst + objectDisposed;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\FileBasedResourceGroveler.cs (1)
44throw new MissingManifestResourceException($"{SR.MissingManifestResource_NoNeutralDisk}{Environment.NewLineConst}baseName: {_mediator.BaseNameField} fileName: {_mediator.GetResourceFileName(culture)}");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (2)
467Debug.Fail("Couldn't get " + CoreLib.Name + ResourceManager.ResFileExtension + " from " + CoreLib.Name + "'s assembly" + Environment.NewLineConst + Environment.NewLineConst + "Are you building the runtime on your machine? Chances are the BCL directory didn't build correctly. Type 'build -c' in the BCL directory. If you get build errors, look at buildd.log. If you then can't figure out what's wrong (and you aren't changing the assembly-related metadata code), ask a BCL dev.\n\nIf you did NOT build the runtime, you shouldn't be seeing this and you've found a bug.");
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\COMException.cs (1)
65s.Append(Environment.NewLineConst + InnerExceptionPrefix).Append(innerException.ToString());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (2)
64s += Environment.NewLineConst + InnerExceptionPrefix + innerException.ToString(); 68s += Environment.NewLineConst + StackTrace;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (4)
431write(obj, Environment.NewLineConst); 440write(obj, Environment.NewLineConst); 453write(obj, Environment.NewLineConst); 465write(obj, Environment.NewLineConst);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
1517public string ReplaceLineEndings() => ReplaceLineEndings(Environment.NewLineConst);