How can i create array of my class with default constructor ?

Posted by Freshblood on Stack Overflow See other posts from Stack Overflow or by Freshblood
Published on 2010-06-12T09:40:49Z Indexed on 2010/06/12 9:42 UTC
Read the original article Hit count: 200

Filed under:
|
|
|

Hello

For example

MYCLASS[] myclass = new MYCLASS[10];

Now myclass array is all null array but i want to have default constructed Array .I know that i can write loops for set default constructed but i am looking for more easy and simple way.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET