Answer the question
In order to leave comments, you need to log in
How to add element to mono array?
Hello, I'm using Xamarin (Mono) and can't figure out how to add an element to an array.
If it worked in VS, then there were no problems, just Array.Add , and it won’t work like that.
Answer the question
In order to leave comments, you need to log in
Um... Array or ArrayList? if the latter then yes, Add (or whatever). If Array then Array.Resize() and then add the value...
An Array cannot resize itself (except in the manner specified by @Fesor . If resizing is required, use List<T>
e.g.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question