|
1 | | -// Copyright 2004-2021 Castle Project - http://www.castleproject.org/ |
| 1 | +// Copyright 2004-2025 Castle Project - http://www.castleproject.org/ |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -195,12 +195,12 @@ internal static bool IsFinalizer(this MethodInfo methodInfo) |
195 | 195 |
|
196 | 196 | internal static bool IsGetType(this MethodInfo methodInfo) |
197 | 197 | { |
198 | | - return methodInfo.DeclaringType == typeof(object) && string.Equals("GetType", methodInfo.Name, StringComparison.OrdinalIgnoreCase); |
| 198 | + return methodInfo.DeclaringType == typeof(object) && string.Equals("GetType", methodInfo.Name, StringComparison.Ordinal); |
199 | 199 | } |
200 | 200 |
|
201 | 201 | internal static bool IsMemberwiseClone(this MethodInfo methodInfo) |
202 | 202 | { |
203 | | - return methodInfo.DeclaringType == typeof(object) && string.Equals("MemberwiseClone", methodInfo.Name, StringComparison.OrdinalIgnoreCase); |
| 203 | + return methodInfo.DeclaringType == typeof(object) && string.Equals("MemberwiseClone", methodInfo.Name, StringComparison.Ordinal); |
204 | 204 | } |
205 | 205 |
|
206 | 206 | internal static void SetStaticField(this Type type, string fieldName, BindingFlags additionalFlags, object? value) |
@@ -252,7 +252,7 @@ public static MemberInfo[] Sort(MemberInfo[] members) |
252 | 252 | { |
253 | 253 | var sortedMembers = new MemberInfo[members.Length]; |
254 | 254 | Array.Copy(members, sortedMembers, members.Length); |
255 | | - Array.Sort(sortedMembers, (l, r) => string.Compare(l.Name, r.Name, StringComparison.OrdinalIgnoreCase)); |
| 255 | + Array.Sort(sortedMembers, (l, r) => string.Compare(l.Name, r.Name, StringComparison.Ordinal)); |
256 | 256 | return sortedMembers; |
257 | 257 | } |
258 | 258 |
|
|
0 commit comments