What is the best way to give a C# auto-property an initial value?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=I_g1v7bXvIw



Duration: 4:49
4 views
0


What is the best way to give a C# auto-property an initial value?
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/946/bentford)bentford |
(stackoverflow.com/users/77/darren-kopp)Darren Kopp |
(stackoverflow.com/users/810915/chuck-rostance)Chuck Rostance |
(stackoverflow.com/users/905/keith)Keith |
(stackoverflow.com/users/3717/crucible)crucible |
(stackoverflow.com/users/325521/shiva)Shiva |
A special thanks goes out to the (https://stackoverflow.com/questions/40730/what-is-the-best-way-to-give-a-c-sharp-auto-property-an-initial-value)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

getter automatic-properties setter constructor c#







Tags:
getter
automatic-properties
setter
constructor
c#