-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use file scoped namespaces (#398)
- Loading branch information
1 parent
fee6fb8
commit 0f3fa8a
Showing
314 changed files
with
20,790 additions
and
21,106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
namespace Microsoft.ComponentDetection.Common | ||
namespace Microsoft.ComponentDetection.Common; | ||
|
||
public class Column | ||
{ | ||
public class Column | ||
{ | ||
public int Width { get; set; } | ||
public int Width { get; set; } | ||
|
||
public string Header { get; set; } | ||
public string Header { get; set; } | ||
|
||
public string Format { get; set; } | ||
} | ||
public string Format { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 10 additions & 11 deletions
21
src/Microsoft.ComponentDetection.Common/ComponentComparer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
using Microsoft.ComponentDetection.Contracts.TypedComponent; | ||
|
||
namespace Microsoft.ComponentDetection.Common | ||
namespace Microsoft.ComponentDetection.Common; | ||
|
||
public class ComponentComparer : EqualityComparer<TypedComponent> | ||
{ | ||
public class ComponentComparer : EqualityComparer<TypedComponent> | ||
public override bool Equals(TypedComponent t0, TypedComponent t1) | ||
{ | ||
public override bool Equals(TypedComponent t0, TypedComponent t1) | ||
{ | ||
return t0.Id.Equals(t1.Id); | ||
} | ||
return t0.Id.Equals(t1.Id); | ||
} | ||
|
||
public override int GetHashCode(TypedComponent typedComponent) | ||
{ | ||
return typedComponent.Id.GetHashCode(); | ||
} | ||
public override int GetHashCode(TypedComponent typedComponent) | ||
{ | ||
return typedComponent.Id.GetHashCode(); | ||
} | ||
} |
Oops, something went wrong.