You can create constant arrays no problem and can do it at class level like this in the class variable area:


	static array<String^> ^MyStringrray = {"Name 1", "Name 2"};
	static array<int> ^MyIntArray = {111, 222};

	static array<UInt16> ^wCRCTable = {
		0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241,
		0x8201, 0x42C0, 0x4380, 0x8341, 0x4100, 0x81C1, 0x8081, 0x4040 };
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published.