|
by luisabreu via LA.NET [EN] on 4/24/2010 11:23:29 AM
Constants are (really!) different from read-only fields. Unfortunately, there are still many people which can’t tell the difference between them, so I thought about writing a small post on this topic. A constant is a symbol (ie, an alias) for value that *never* changes. That’s why you can only define constant primitive types (wtf? Primitive types? Don’t we have only value vs reference types in .NET? Good question…I’ll return to this in a future post :)). When I say primitive type, I’m thinking
... [ read more ]
|
|