La funzione ArrayList.Add in C# è utilizzata per aggiungere un elemento alla fine di un ArrayList. Questo metodo permette di aggiungere qualsiasi tipo di oggetto all'ArrayList. Quando si utilizza questo metodo, l'ArrayList viene automaticamente ridimensionato per accogliere il nuovo elemento. Il metodo restituisce l'indice in cui l'oggetto è stato aggiunto o -1 se si è verificato un errore.
ArrayList.Add in C# (CSharp): 60 esempi trovati. Questi sono i migliori esempi reali in C# (CSharp) per ArrayList.Add, estratti da progetti open source. Li puoi valutare, per aiutarci a migliorare la qualità dei nostri esempi.