Use file scoped namespace declarations

This commit is contained in:
Patrik Svensson
2021-12-21 11:06:46 +01:00
committed by Phil Scott
parent 1dbaf50935
commit ec1188b837
607 changed files with 28739 additions and 29245 deletions

View File

@ -1,31 +1,30 @@
using System.IO;
namespace Spectre.Console
{
internal static class TextWriterExtensions
{
public static bool IsStandardOut(this TextWriter writer)
{
try
{
return writer == System.Console.Out;
}
catch
{
return false;
}
}
namespace Spectre.Console;
public static bool IsStandardError(this TextWriter writer)
internal static class TextWriterExtensions
{
public static bool IsStandardOut(this TextWriter writer)
{
try
{
try
{
return writer == System.Console.Error;
}
catch
{
return false;
}
return writer == System.Console.Out;
}
catch
{
return false;
}
}
}
public static bool IsStandardError(this TextWriter writer)
{
try
{
return writer == System.Console.Error;
}
catch
{
return false;
}
}
}