> When I was working with vs 2003 I was used to do thinks like this:
ArrayList a = new ArrayList();
Doc d = new Doc();
d.field = "value";
a.Add(d);
...
((Doc)a[0]).field = "other value";
And it works very well. But now, in vs2005 it doesn't work and I don't
know
why.
How can I make it works in vs2005?
Thank you very much.
Why do you think it doesn't work?
- compiler error? if so then we need to see the error
- exception? if so then we need to see the exception message and type
- does not give the expected results? then we need to see the declaration
of Doc, as well as an explanation of how you verify that it does what its
supposed to do
--
Lasse Vågsæther Karlsen
http://usinglvkblog.blogspot.com/
mailto:la***@vkarlsen.no
PGP KeyID: 0x2A42A1C2