Skip to content

Commit 4e3c5c1

Browse files
committed
fix comments
1 parent ee52db7 commit 4e3c5c1

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/AspectCore.Core/Extensions/MethodInfoExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace AspectCore.Extensions
77
{
88
internal static class MethodInfoExtensions
99
{
10-
public static IEnumerable<MethodInfo> GetInterfaceDeclarationsForMethod(this MethodInfo method)
10+
public static IEnumerable<MethodInfo> GetInterfaceDeclarations(this MethodInfo method)
1111
{
1212
var typeInfo = method.ReflectedType?.GetTypeInfo();
1313
if (typeInfo is null)

src/AspectCore.Core/Utils/ProxyGeneratorUtils.CovariantReturnMethod.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal partial class ProxyGeneratorUtils
1515
private static readonly Type PreserveBaseOverridesAttribute = Type.GetType("System.Runtime.CompilerServices.PreserveBaseOverridesAttribute", false);
1616

1717
// key: covariant return method
18-
// value: overridden method's interface declarations
18+
// value: interface method declarations
1919
internal static IReadOnlyDictionary<MethodInfo, HashSet<MethodInfo>> GetCovariantReturnMethodMap(Type implType)
2020
{
2121
var result = new Dictionary<MethodInfo, HashSet<MethodInfo>>();
@@ -32,7 +32,7 @@ internal static IReadOnlyDictionary<MethodInfo, HashSet<MethodInfo>> GetCovarian
3232

3333
foreach (var method in covariantReturnMethods)
3434
{
35-
var interfaceDeclarations = method.GetInterfaceDeclarationsForMethod().ToHashSet();
35+
var interfaceDeclarations = method.GetInterfaceDeclarations().ToHashSet();
3636
result[method] = interfaceDeclarations;
3737
}
3838

tests/AspectCore.Tests/DynamicProxy/CovariantReturnMethodTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Linq;
2-
using AspectCore.DynamicProxy;
1+
using AspectCore.DynamicProxy;
32
using Xunit;
43

54
namespace AspectCore.Tests.DynamicProxy;

0 commit comments

Comments
 (0)