Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number Of Rows In Data Context
Message
General information
Forum:
ASP.NET
Category:
LINQ
Miscellaneous
Thread ID:
01470032
Message ID:
01470048
Views:
32
>I'd like to create an array of objects:
>
>
>aspnetApplication[] applications = new aspnetApplication[dc.aspnet_Applications.Count}];
>
>
>I get "Cannot convert method group 'Count' to non-delegate type 'int'. 'DC' is the DBML. What's wrong here?

Having to read between the lines a bit here - but if I understand correctly what you're trying to do :
aspnetApplication[] applications = dc.aspnet_Applications.ToArray();
Update: But there's something wrong there. Logically it would be
aspnet_Applications[] applications = dc.aspnet_Applications.ToArray();
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform