Skip to content

Commit 1f125cd

Browse files
committed
PEVerify detects no duplicate for redeclared props
This might be a PEVerify bug. Given that the C# compiler would force us to implement either the base or derived property explicitly (in a class implementing `IDerived`), let's do the same in DynamicProxy. Use the same approach as for events.
1 parent 5c80d1d commit 1f125cd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ public bool Equals(MetaProperty other)
159159
return true;
160160
}
161161

162-
if (!Type.Equals(other.Type))
163-
{
164-
return false;
165-
}
166-
167162
if (!StringComparer.OrdinalIgnoreCase.Equals(Name, other.Name))
168163
{
169164
return false;

0 commit comments

Comments
 (0)