Back

array of anonymous type (vb.net to c#)

Dim plans() = {New With {Key .ParentId = 100000010, Key .ChildId = 100000011}, New With {Key .ParentId = 100000012, Key .ChildId = 100000013}}
It should be converted so
var plans = new[] { new { ParentId = 100000010, ChildId = 100000011 }, new { ParentId = 100000012, ChildId = 100000013 } };
Now converted into a nonworking crap
[] plans = {
new {
ParentId = 100000010,
ChildId = 100000011
},
new {
ParentId = 100000012,
ChildId = 100000013
}
};
» Post Comment

Comments (0)

 
No comments, yet. Be the first!

Post Comment

Your Comment :
Commenting is disabled when the portal is unlicensed.
Select...