I'm new to C#, so this problem may be trivial to many of you... I'm writing simple application that uses API of a certain website. I'm using and altering an example from this website. So the problem is when I'm instantiating an object that (in simple words) returns simple variable like string, int or even user-defined type everything seems to be working fine, but when I try to instantiate an element that is an element array of user-defined:
request.@parameters.examplename = new somenamespace.SomeName.UserType();
type I get a message like this:
"Cannot implicitly convert type "somenamespace.SomeName.UserType' to 'somenamespace.SomeName.UserType[]'."
Can you explain to me what am I doing wrong? Is there a different way to instantiate an element array? If you need more information please let me know.