I already covered different kinds of arrays in my first article. I explained combining (joining) and splitting of arrays in my second article. The third article covered copying, transferring and merging data. And in this section I focus on “pushing” (also called “appending”) an element to an array.
Actually, within the above code, the “meta” tag is not necessary. Because I developed the above code using Visual Studio.NET 2003 Enterprise Architect, it was automatically added to provide its full-featured mechanisms.
When the above code is executed we get the following output:
Before adding ------------- Red Green Blue White
After adding ------------- Red Green Blue White
The explanation for the above code is in the next section.