Skip to content

Commit 58e8236

Browse files
committed
Don't compare type members case-insensitively
1 parent 6b63d62 commit 58e8236

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Castle.Core/DynamicProxy/Generators/MetaEvent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2004-2021 Castle Project - http://www.castleproject.org/
1+
// Copyright 2004-2025 Castle Project - http://www.castleproject.org/
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -128,7 +128,7 @@ public bool Equals(MetaEvent other)
128128
return true;
129129
}
130130

131-
if (!StringComparer.OrdinalIgnoreCase.Equals(Name, other.Name))
131+
if (!StringComparer.Ordinal.Equals(Name, other.Name))
132132
{
133133
return false;
134134
}

src/Castle.Core/DynamicProxy/Generators/MetaMethod.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2004-2021 Castle Project - http://www.castleproject.org/
1+
// Copyright 2004-2025 Castle Project - http://www.castleproject.org/
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -61,7 +61,7 @@ public bool Equals(MetaMethod other)
6161
return true;
6262
}
6363

64-
if (!StringComparer.OrdinalIgnoreCase.Equals(Name, other.Name))
64+
if (!StringComparer.Ordinal.Equals(Name, other.Name))
6565
{
6666
return false;
6767
}

src/Castle.Core/DynamicProxy/Generators/MetaProperty.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2004-2021 Castle Project - http://www.castleproject.org/
1+
// Copyright 2004-2025 Castle Project - http://www.castleproject.org/
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -159,7 +159,7 @@ public bool Equals(MetaProperty other)
159159
return true;
160160
}
161161

162-
if (!StringComparer.OrdinalIgnoreCase.Equals(Name, other.Name))
162+
if (!StringComparer.Ordinal.Equals(Name, other.Name))
163163
{
164164
return false;
165165
}

0 commit comments

Comments
 (0)