die fledermaus

Hi

How do I go about defining a type that is an 8 member array of char. I.e. it is a fixed size

TIA

Graham Harris



Re: Visual C# Language New non struct data type

Mattias Sjogren

Something like this

class YourClass
{
 private readonly char[] _chars = new char[ 8 ];

 public char this[int index]
 {
  get { return _chars[index]; }
  set { _chars[index] = value; }
 }
}