Skip to content

Commit

Permalink
Use file-scoped namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielweyer committed Mar 14, 2022
1 parent 0dacef6 commit 1e48eb5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
11 changes: 5 additions & 6 deletions src/ExtraLogic/IncrediblyUseless.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
namespace Contoso.Hello.ExtraLogic
namespace Contoso.Hello.ExtraLogic;

public static class IncrediblyUseless
{
public static class IncrediblyUseless
public static string DoNothing(string value)
{
public static string DoNothing(string value)
{
return value;
}
return value;
}
}
11 changes: 5 additions & 6 deletions src/Logic/ReallyUseless.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using Newtonsoft.Json;

namespace Contoso.Hello.Logic
namespace Contoso.Hello.Logic;

public static class ReallyUseless
{
public static class ReallyUseless
public static string SayHi()
{
public static string SayHi()
{
return JsonConvert.SerializeObject("Hello");
}
return JsonConvert.SerializeObject("Hello");
}
}
11 changes: 5 additions & 6 deletions src/SuperLogic/EvenMoreUseless.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using Contoso.Hello.ExtraLogic;
using Contoso.Hello.Logic;

namespace Contoso.Hello.SuperLogic
namespace Contoso.Hello.SuperLogic;

public static class EvenMoreUseless
{
public static class EvenMoreUseless
public static string DoWork()
{
public static string DoWork()
{
return IncrediblyUseless.DoNothing($"Some JSON (maybe): {ReallyUseless.SayHi()}");
}
return IncrediblyUseless.DoNothing($"Some JSON (maybe): {ReallyUseless.SayHi()}");
}
}

0 comments on commit 1e48eb5

Please sign in to comment.