Revert "File scoped namespaces"

This reverts commit d31d8f574e.
This commit is contained in:
Burak Kaan Köse
2025-02-16 11:43:30 +01:00
parent d31d8f574e
commit cf9869b71e
617 changed files with 32097 additions and 31478 deletions

View File

@@ -1,23 +1,24 @@
using System;
using System.Collections.Generic;
namespace Wino.Core.Domain.Extensions;
public static class ExceptionExtensions
namespace Wino.Core.Domain.Extensions
{
public static IEnumerable<Exception> GetInnerExceptions(this Exception ex)
public static class ExceptionExtensions
{
if (ex == null)
public static IEnumerable<Exception> GetInnerExceptions(this Exception ex)
{
throw new ArgumentNullException("ex");
}
if (ex == null)
{
throw new ArgumentNullException("ex");
}
var innerException = ex;
do
{
yield return innerException;
innerException = innerException.InnerException;
var innerException = ex;
do
{
yield return innerException;
innerException = innerException.InnerException;
}
while (innerException != null);
}
while (innerException != null);
}
}