I am instantiating a class in a switch statement as there are a number
of different overloads depending upon the data entered by the user.
The problem I have is that after instantiating my class, when I try to
call methods in the class later on in my code using the same object I
cannot, I get the error 'use of unassigned local variable'.
How do I get around this as I need some sort of switch/if statement to
instantiate my class?
Any assistance would be really appreciated.
Cheers,
Mike
of different overloads depending upon the data entered by the user.
The problem I have is that after instantiating my class, when I try to
call methods in the class later on in my code using the same object I
cannot, I get the error 'use of unassigned local variable'.
How do I get around this as I need some sort of switch/if statement to
instantiate my class?
Any assistance would be really appreciated.
Cheers,
Mike