Re: Constants Array of "Structs"
- From: Marcin Grzębski <mgrzebski@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Apr 2005 15:05:35 +0200
smartkid wrote:
public readonly static TDBField[] gcaDBFields
The gcaDBFields is not really readonly, the client code can still change the element of that array.
To get a real constant array-like object, use ReadOnlyCollection instead of an array.
You're right only gcaDBFields can not be assigned in user code but all fields are not read-only.
It's a pity, if there is no simpler declaration of constant array :-(
Thank You & Regards Marcin .
- References:
- Constants Array of "Structs"
- From: ESPNSTI
- Re: Constants Array of "Structs"
- From: Marcin Grzębski
- Re: Constants Array of "Structs"
- From: smartkid
- Constants Array of "Structs"
- Prev by Date: Re: Destructors are useless?
- Next by Date: DateTime formatting, Web App, Web Service, SQL Server
- Previous by thread: Re: Constants Array of "Structs"
- Next by thread: Looking for an Explore here add-in.
- Index(es):