A
Alexander Brown
I run the following code:
Control control = pluginInstance.Control;
Console.WriteLine("type is "+control.GetType());
NewControl castControl = (NewControl)control;
The Console has "type is MyNamespace.NewControl" written to it. However the
third line of code throws a "Specified case is not valid exception".
Can anyone tell me why this would be? I get the impression that there is
something fundamental to the language that i have overlooked!
Thanks,
Alex
Control control = pluginInstance.Control;
Console.WriteLine("type is "+control.GetType());
NewControl castControl = (NewControl)control;
The Console has "type is MyNamespace.NewControl" written to it. However the
third line of code throws a "Specified case is not valid exception".
Can anyone tell me why this would be? I get the impression that there is
something fundamental to the language that i have overlooked!
Thanks,
Alex