Skip to content

Commit 122f890

Browse files
Move using directives before namespace declarations (outside_namespace)
With file-scoped namespaces the inside/outside distinction has no semantic effect. Updated .editorconfig from inside_namespace to outside_namespace and moved all using directives before the namespace declaration across 318 files, matching the modern C# community convention used by dotnet/runtime and dotnet/aspnetcore. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3a43379 commit 122f890

File tree

319 files changed

+641
-890
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

319 files changed

+641
-890
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ csharp_style_prefer_range_operator = true:suggestion
141141
[*.cs]
142142
csharp_style_deconstructed_variable_declaration = true:suggestion
143143
csharp_style_pattern_local_over_anonymous_function = true:suggestion
144-
csharp_using_directive_placement = inside_namespace:warning
144+
csharp_using_directive_placement = outside_namespace:warning
145145
csharp_prefer_static_local_function = true:suggestion
146146
csharp_prefer_simple_using_statement = true:suggestion
147147
csharp_style_prefer_switch_expression = true:suggestion

src/AzureMapsControl.Components/Animations/Animation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
namespace AzureMapsControl.Components.Animations;
2-
31
using AzureMapsControl.Components.Animations.Options;
42
using AzureMapsControl.Components.Runtime;
53

4+
namespace AzureMapsControl.Components.Animations;
5+
66
internal abstract class Animation : IAnimation
77
{
88
private readonly string _id;

src/AzureMapsControl.Components/Animations/AnimationDisposedException.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
namespace AzureMapsControl.Components.Animations;
2-
31
using AzureMapsControl.Components.Exceptions;
42

3+
namespace AzureMapsControl.Components.Animations;
4+
55
public sealed class AnimationDisposedException : ComponentDisposedException
66
{
77
internal AnimationDisposedException(): base("This animation has already been disposed") { }

src/AzureMapsControl.Components/Animations/AnimationService.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
namespace AzureMapsControl.Components.Animations;
2-
31
using AzureMapsControl.Components.Animations.Options;
42
using AzureMapsControl.Components.Atlas;
53
using AzureMapsControl.Components.Data;
@@ -8,9 +6,10 @@ namespace AzureMapsControl.Components.Animations;
86
using AzureMapsControl.Components.Map;
97
using AzureMapsControl.Components.Markers;
108
using AzureMapsControl.Components.Runtime;
11-
129
using Microsoft.Extensions.Logging;
1310

11+
namespace AzureMapsControl.Components.Animations;
12+
1413
internal sealed class AnimationService : IAnimationService
1514
{
1615
private readonly IMapJsRuntime _jsRuntime;

src/AzureMapsControl.Components/Animations/DropAnimation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
namespace AzureMapsControl.Components.Animations;
2-
31
using AzureMapsControl.Components.Animations.Options;
42
using AzureMapsControl.Components.Runtime;
53

4+
namespace AzureMapsControl.Components.Animations;
5+
66
internal sealed class DropAnimation : Animation<DropAnimationOptions>, IDropAnimation
77
{
88
public DropAnimation(string id, IMapJsRuntime jsRuntime) : base(id, jsRuntime)

src/AzureMapsControl.Components/Animations/DropMarkersAnimation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
namespace AzureMapsControl.Components.Animations;
2-
31
using AzureMapsControl.Components.Animations.Options;
42
using AzureMapsControl.Components.Runtime;
53

4+
namespace AzureMapsControl.Components.Animations;
5+
66
internal sealed class DropMarkersAnimation : Animation<DropMarkersAnimationOptions>, IDropMarkersAnimation
77
{
88
public DropMarkersAnimation(string id, IMapJsRuntime jsRuntime) : base(id, jsRuntime)

src/AzureMapsControl.Components/Animations/FlowingDashedLineAnimation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
namespace AzureMapsControl.Components.Animations;
2-
31
using AzureMapsControl.Components.Animations.Options;
42
using AzureMapsControl.Components.Runtime;
53

4+
namespace AzureMapsControl.Components.Animations;
5+
66
internal sealed class FlowingDashedLineAnimation : Animation<MovingDashLineOptions>, IFlowingDashedLineAnimation
77
{
88
public FlowingDashedLineAnimation(string id, IMapJsRuntime jsRuntime) : base(id, jsRuntime)

src/AzureMapsControl.Components/Animations/GroupAnimation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
namespace AzureMapsControl.Components.Animations;
2-
31
using AzureMapsControl.Components.Animations.Options;
42
using AzureMapsControl.Components.Runtime;
53

4+
namespace AzureMapsControl.Components.Animations;
5+
66
internal sealed class GroupAnimation : Animation<GroupAnimationOptions>, IGroupAnimation
77
{
88
public GroupAnimation(string id, IMapJsRuntime jsRuntime) : base(id, jsRuntime)

src/AzureMapsControl.Components/Animations/IAnimationService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
namespace AzureMapsControl.Components.Animations;
2-
31
using AzureMapsControl.Components.Animations.Options;
42
using AzureMapsControl.Components.Atlas;
53
using AzureMapsControl.Components.Data;
64
using AzureMapsControl.Components.Layers;
75
using AzureMapsControl.Components.Markers;
86

7+
namespace AzureMapsControl.Components.Animations;
8+
99
public interface IAnimationService
1010
{
1111
/// <summary>

src/AzureMapsControl.Components/Animations/IDropAnimation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
namespace AzureMapsControl.Components.Animations;
2-
31
using AzureMapsControl.Components.Animations.Options;
42

3+
namespace AzureMapsControl.Components.Animations;
4+
55
public interface IDropAnimation : IAnimation
66
{
77
/// <summary>

0 commit comments

Comments
 (0)