Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

initialize c# array property of class object site:stackoverflow.com

var arrayOfObjects = arrayOfStrings.Select(s => new MyObject{ MyProperty = s}).ToArray();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #initialize #array #property #class #object
ADD COMMENT
Topic
Name
6+8 =