In C#, is there a way to reference the calling class in a constructor?
In C#, is there a way to reference the calling class in a constructor?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!
(stackoverflow.com/users/20636879/wiley-rush)Wiley Rush |
(stackoverflow.com/users/22656/jon-skeet)Jon Skeet |
(stackoverflow.com/users/7516/stephen-wrighton)Stephen Wrighton |
(stackoverflow.com/users/4301195/hossein-sabziani)Hossein Sabziani |
A special thanks goes out to the (https://stackoverflow.com/questions/75501874/in-c-is-there-a-way-to-reference-the-calling-class-in-a-constructor)Stackexchange community |
I wish you all a wonderful day! Stay safe :)
c# .net