Variable never initialized with value #45381
Labels
dotnet-fundamentals/svc
in-pr
This issue will be closed (fixed) by an active pull request.
⌚ Not Triaged
Not triaged
Type of issue
Code doesn't work
Description
In the DisplayGenericParameter method, variable classConstraint is initialized with null and then is checked without getting any value.
After changing it to
it is displayed the right base type constraint when executing this line of code :
Page URL
https://learn.microsoft.com/en-us/dotnet/fundamentals/reflection/how-to-examine-and-instantiate-generic-types-with-reflection
Content source URL
https://github.com/dotnet/docs/blob/main/docs/fundamentals/reflection/how-to-examine-and-instantiate-generic-types-with-reflection.md
Document Version Independent Id
100f6dac-701d-701c-0e4b-4308570887a6
Platform Id
b0ffbd50-46af-d46a-1a52-59f6d5790be1
Article author
@dotnet-bot
Metadata
Related Issues
The text was updated successfully, but these errors were encountered: