Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upImpossible to call overridden `protected internal` method of base class. #7622
Comments
yurko7
changed the title
Impossible to call overrided `protected internal` method of base class.
Impossible to call overridden `protected internal` method of base class.
Aug 23, 2018
yurko7
added a commit
to yurko7/PowerShell
that referenced
this issue
Aug 23, 2018
yurko7
referenced this issue
Aug 23, 2018
Merged
Use non virtual call of 'family or assembly' methods of base class. #7624
iSazonov
added
Issue-Enhancement
Area-Language
labels
Aug 24, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@yurko7 By "overridden implementation called recursively", I'm guessing you get a |
This comment has been minimized.
This comment has been minimized.
Depends on implementation of overridden method. On unconditional call of base method, sure, we'll get a |
This comment has been minimized.
This comment has been minimized.
|
Yes, I would imagine it depends on the particular method. I just meant for the example class you specify in the issue. |
daxian-dbw
closed this
in
#7624
Aug 29, 2018
daxian-dbw
added a commit
that referenced
this issue
Aug 29, 2018
iSazonov
added
the
Resolution-Fixed
label
Aug 29, 2018
TravisEz13
added a commit
that referenced
this issue
Aug 31, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yurko7 commentedAug 23, 2018
•
edited
Steps to reproduce
Derive from a class with virtual
protected internalmethod. For example,System.Diagnostics.Tracing.EventListener,System.Net.Http.DelegatingHandler.Override that method.
Call that method of base class.
Expected behavior
Method of base class should be called.
Actual behavior
Overridden implementation called recursively until
Environment data