Hi,
Thanks for your time. I have a naive C# question about dynamic creation of objects.
MyClass a = new MyClass(); works
but
MyClass [] a = new MyClass[2]; does not...It does not give any errors but the value is null and when I try to invoke a method on the class it gives an exception {"Object reference not set to an instance of an object."}
Am I missing something simple?
Thanks again.
G
Thanks for your time. I have a naive C# question about dynamic creation of objects.
MyClass a = new MyClass(); works
but
MyClass [] a = new MyClass[2]; does not...It does not give any errors but the value is null and when I try to invoke a method on the class it gives an exception {"Object reference not set to an instance of an object."}
Am I missing something simple?
Thanks again.
G