R
Romain TAILLANDIER
hi group !
How can i declare a const byte[] in C# ?
const byte[] ByteArray = new byte[] { 69, 110, 99}; // Error : the
expression must be constante
const byte[] ByteArray = { 69, 110, 99}; // Error , the table initialisators
can be used only to initialize variables, try the operator new
i try a few others, but i allreadey have erro like those.
so solve the probleme by using a read only property.
but how could i declare a const byte array ?
thanks
ROM
How can i declare a const byte[] in C# ?
const byte[] ByteArray = new byte[] { 69, 110, 99}; // Error : the
expression must be constante
const byte[] ByteArray = { 69, 110, 99}; // Error , the table initialisators
can be used only to initialize variables, try the operator new
i try a few others, but i allreadey have erro like those.
so solve the probleme by using a read only property.
but how could i declare a const byte array ?
thanks
ROM