🎨 Move using directives to outside-namspace

Item for #14

editorconfig:
csharp_using_directive_placement=outside_namespace:error
This commit is contained in:
Oliver Booth 2021-01-16 13:43:19 +00:00
parent 13bd4b7fe1
commit bbfdf39d09
21 changed files with 85 additions and 87 deletions

View File

@ -107,7 +107,7 @@ csharp_style_unused_value_assignment_preference=discard_variable:suggestion
csharp_style_unused_value_expression_statement_preference=discard_variable:silent
# 'using' directive preferences
csharp_using_directive_placement=inside_namespace:suggestion
csharp_using_directive_placement=outside_namespace:error
#### C# Formatting Rules ####

View File

@ -1,10 +1,10 @@
namespace X10D
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="byte" />.
/// </summary>

View File

@ -1,10 +1,10 @@
namespace X10D
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="char" />.
/// </summary>

View File

@ -1,7 +1,7 @@
namespace X10D
{
using System;
using System;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="IComparable" />.
/// </summary>

View File

@ -1,7 +1,7 @@
namespace X10D
{
using System;
using System;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="DateTime" />.
/// </summary>

View File

@ -1,10 +1,10 @@
namespace X10D
{
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
namespace X10D
{
/// <summary>
/// A set of extension methods for <see cref="Dictionary{TKey,TValue}" />.
/// </summary>

View File

@ -1,7 +1,7 @@
namespace X10D
{
using System;
using System;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="double" />.
/// </summary>

View File

@ -1,7 +1,7 @@
namespace X10D
{
using System.Net;
using System.Net;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="EndPoint" /> and derived types.
/// </summary>

View File

@ -1,8 +1,8 @@
namespace X10D
{
using System.Collections.Generic;
using System.Linq;
using System.Collections.Generic;
using System.Linq;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="IEnumerable{T}" />.
/// </summary>

View File

@ -1,7 +1,7 @@
namespace X10D
{
using System;
using System;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="short" />.
/// </summary>

View File

@ -1,7 +1,7 @@
namespace X10D
{
using System;
using System;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="int" />.
/// </summary>

View File

@ -1,7 +1,7 @@
namespace X10D
{
using System;
using System;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="long" />.
/// </summary>

View File

@ -1,9 +1,9 @@
namespace X10D
{
using System;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="IList{T}" />.
/// </summary>

View File

@ -1,9 +1,9 @@
namespace X10D
{
using System;
using System.Collections.Generic;
using System.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="Random" />.
/// </summary>

View File

@ -1,9 +1,9 @@
namespace X10D
{
using System;
using System.ComponentModel;
using System.Reflection;
using System;
using System.ComponentModel;
using System.Reflection;
namespace X10D
{
/// <summary>
/// Extension methods for various reflection types.
/// </summary>

View File

@ -1,7 +1,7 @@
namespace X10D
{
using System;
using System;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="float" />.
/// </summary>

View File

@ -1,9 +1,9 @@
namespace X10D
{
using System;
using System.IO;
using System.Security.Cryptography;
using System;
using System.IO;
using System.Security.Cryptography;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="Stream" />.
/// </summary>

View File

@ -1,12 +1,10 @@
namespace X10D
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Security;
using System.Text;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="string" />.
/// </summary>

View File

@ -1,7 +1,7 @@
namespace X10D
{
using System;
using System;
namespace X10D
{
/// <summary>
/// Extension methods for <see langword="struct" /> types.
/// </summary>

View File

@ -1,9 +1,9 @@
namespace X10D
{
using System;
using System.Diagnostics;
using System.Text.RegularExpressions;
using System;
using System.Diagnostics;
using System.Text.RegularExpressions;
namespace X10D
{
/// <summary>
/// Represents a class which contains a <see cref="string" /> parser which converts into <see cref="TimeSpan" />.
/// </summary>

View File

@ -1,8 +1,8 @@
namespace X10D
{
using System.Threading;
using System.Threading.Tasks;
using System.Threading;
using System.Threading.Tasks;
namespace X10D
{
/// <summary>
/// Extension methods for <see cref="WaitHandle" />.
/// </summary>