how to make array of class objects using dynamic allocation in c#?

Posted by jack22 on Stack Overflow See other posts from Stack Overflow or by jack22
Published on 2010-05-28T20:31:14Z Indexed on 2010/05/28 20:41 UTC
Read the original article Hit count: 154

Filed under:
|
|

hi, i made a class named x; so i want to make array of it using dynamic allocation

x [] myobjects = new x();

but it gives me that error

Cannot implicitly convert type 'ObjAssig4.x' to 'ObjAssig4.x[]'

i know it's dump question but i am a beginner

thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about dynamic