Why we can only use const keyword with primitive type in C# and cannot be used with user-defined types? Moreover, what is the concept that const are static by-default?
Loading
Why we can only use const keyword with primitive type in C# and cannot be used with user-defined types? Moreover, what is the concept that const are static by-default?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted May 6, 2022, 6:18 AM
Sachin SinghPosted May 6, 2022, 6:42 AM