Commit 9c58968
committed
Exclude non-proxyable interface methods
Two changes need to be made to `InterfaceMembersCollector`:
1. `AcceptMethod` needs to be called with `onlyVirtuals: true`, so that
it will filter out non-overridable methods during pre-screening.
2. For such filtered-out methods, it needs to return `null` in order to
avoid `MinimalisticMethodGenerator` (which would mark the method it
creates as an override).
These changes have been copied from `ClassMembersCollector`. Note that
the two classes are now almost identical.1 parent 0fc266e commit 9c58968
File tree
1 file changed
+7
-1
lines changed- src/Castle.Core/DynamicProxy/Contributors
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| |||
0 commit comments