Solved How do I do a get/post for an array in c#?

September 25, 2012 at 15:12:55
Specs: Windows 7, logs
How do I do a get/post for an array in c#?

In C#, you get and set variables like this:

[CODE]public int ID { get; set; }[/CODE]

How would one get and set an array in C#?

This will not work:

[CODE]public uint [5] BIG_Hash {get; set;}[/CODE]


See More: How do I do a get/post for an array in c#?

Report •

#1
September 26, 2012 at 07:49:26
✔ Best Answer
You can't specify array size in the variable deceleration, so you can't specify array size in a parameter.
public uint [] BIG_Hash {get; set;}
Alternatively, you could create a struct, and give meaning to each uint.

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question