Skip to content

Commit e6cd64d

Browse files
committed
No hard-coded windows-style new line symbols
1 parent 32b5707 commit e6cd64d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Extensions/Xtensive.Orm.Reprocessing/DomainBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Linq;
33
using System.Reflection;
44
using Xtensive.Orm.Configuration;
@@ -27,7 +27,7 @@ public virtual Domain Build(DomainConfiguration config)
2727
var ex = e.InnerException as ReflectionTypeLoadException;
2828
if (ex != null)
2929
throw new InvalidOperationException(
30-
string.Join("\r\n", ex.LoaderExceptions.Select(a => a.Message)), ex);
30+
string.Join(Environment.NewLine, ex.LoaderExceptions.Select(a => a.Message)), ex);
3131
throw;
3232
}
3333
}

Orm/Xtensive.Orm/Core/Exceptions/AggregateException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ public List<Exception> GetFlatExceptions()
6060
public override string ToString()
6161
{
6262
StringBuilder sb = new StringBuilder(64);
63-
sb.Append(base.ToString())
63+
_ = sb.Append(base.ToString())
6464
.AppendLine()
6565
.AppendFormat("{0}:", Strings.OriginalExceptions);
6666
int i = 1;
6767
foreach (Exception exception in exceptions)
68-
sb.AppendLine().AppendFormat("\r\n{0}: {1}", i++, exception);
68+
sb.AppendLine().AppendFormat("{0}: {1}", i++, exception);
6969
return sb.ToString();
7070
}
7171

0 commit comments

Comments
 (0)