The C# team posts answers to common questions
Browse by Tags
All Tags »
C# Language and... »
Tips (RSS)
-
Strictly speaking you can't, since const can only be applied to a field or local whose value is known at compile time. In both the lines below, the right-hand is not a constant expression (not in C#). const int [] constIntArray = newint [] {2, 3, 4}; Read More...
|