e.g.
ArrayList a = new ArrayList();
a.Add("Array 1");
a.Add("Array 2");
ArrayList b = new ArrayList();
b.Add("Array 3");
b.Add("Array 4");
a.AddRange((ICollection)b);
ArrayList a = new ArrayList();
a.Add("Array 1");
a.Add("Array 2");
ArrayList b = new ArrayList();
b.Add("Array 3");
b.Add("Array 4");
a.AddRange((ICollection)b);
If you are trying to update a table containing XML column via Linked Server in SQL Server, and you are not able to, you are not alone. There...
we do have this in our programming also
ReplyDeletethis is one of the basic ways to learn hardcore programming.
Hahaha, u do? I didn't, I only had the simple one, typecasting in primitive data type, in classes. hehehe...
ReplyDeletethx your code.
ReplyDeleteI have more guess...
How to access and change arrayList's value of arrayList?
e.g.
ArrayList a = new ArrayList();
ArrayList b = new ArrayList();
b.Add("apple");
b.Add("banana");
b.Add("melon");
a.Add(b); //right?
I wanna chang "apple" -> "kiwi"
How I do?
I don't think it's possible to change the value of an object in an ArrayList without re-adding it. You have to loop through the items and change it manually.
ReplyDelete