Hi group

How i can do that ?
public const byte[] B = new byte[] {0x01,0x02,0x03}

// compile error : expression must be constant.
I try a other declaration, but no results.

for the moment i make it readonly, but it is a little different ...
thanks

ROM

Re: const byte[] ? by Mattias

Mattias
Tue Mar 22 03:49:21 CST 2005

>How i can do that ?
>public const byte[] B = new byte[] {0x01,0x02,0x03}

You can't.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.