Strange behaviour on generics #5245
Unanswered
KeyserDSoze
asked this question in
Q&A
Replies: 1 comment 5 replies
-
I'd say this is the expected behavior. You call |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have this situation
a class
a class that extends this class
In the method Configure() there is an extension method StartConfiguration()
And in the extension method I'm using a static method that creates an instance of RystemDocumentServiceProvider
Ok, now, when I call the Configure() method in this way.
I supposed to have a RystemDocumentServiceProvider as RystemDocumentServiceProvider, when code was running I found instead that that object was a RystemDocumentServiceProvider even though if I put a breakpoint in
and I saw that my T entity was a MyRealDocument and not a MyDocument.
Why do I receive that object as MyDocument and not as MyRealDocument?
Is it a normal behaviour or is it strange for something?
Beta Was this translation helpful? Give feedback.
All reactions