Z
Zytan
Classes should have private fields, and they should be accessed
through properties. But what if the field is an array? I know you
can use an indexer to use [] syntax on the entire class itself, but
what about using the [] syntax for a property that hides a field that
is an array?
Is this possible? I was pretty sure it was in VB, but I must be
mistaken, since I don't see it in C#. I am surprised if it is not
possible, since you'd have to code a method to make accessors for
array fields.
Zytan
through properties. But what if the field is an array? I know you
can use an indexer to use [] syntax on the entire class itself, but
what about using the [] syntax for a property that hides a field that
is an array?
Is this possible? I was pretty sure it was in VB, but I must be
mistaken, since I don't see it in C#. I am surprised if it is not
possible, since you'd have to code a method to make accessors for
array fields.
Zytan