I have a class which looks like this (the class is then used to read back from a webservice)
Expand|Select|Wrap|Line Numbers
- class fred
- {
- string jim;
- string hilda;
- int eccles;
- bool crunn;
- double vodka;
- }
Expand|Select|Wrap|Line Numbers
- public void doSomething()
- {
- List<fred> chunky = new List<fred>();
- try
- {
- webservice r = new webservice();
- chunky = r.returnedList;
- // do something
- }
- catch (System.Exception o)
- {
- fred[0].jim = o.ToString();
- // do something else
- }
- }
Do I need to have a line at the top of the code that says
Expand|Select|Wrap|Line Numbers
- chunky = null;
Any help here would be appreciated.
Paul