I have one structure object of Temp strucure.
I want to add it to ArrayList.
Then I want to aceess list[0].caption
Since struct is a reference type, it does'nt modify oringinal object (original).
I want to modify original object. What should I do?
Code:
struct Temp { string caption }
Code:
ArrayList list = new ArrayList(); Temp original= new Temp() list.add(original);
Code:
object tempobject = list [0] as object; Temp temp = (Temp )tempobject ; temp .caption= "jo";
I want to modify original object. What should I do?
Comment