Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command window reappears for .NET
Message
From
01/08/2012 14:18:45
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01549627
Message ID:
01549698
Views:
76
OK, here's the example from before
var Found = from o in Orders
            where o.CustomerID == 84 && o.Cost > 100
            select new {
                       o.OrderID,
                       o.Cost,
                       CostWithTax = o.Cost * 1.1
Now, let's assemble it as standard SQL
var Found =  select new {
                       o.OrderID,
                       o.Cost,
                       CostWithTax = o.Cost * 1.1
            from o in Orders
            where o.CustomerID == 84 && o.Cost > 100
So, as you're typing this in, you type
var Found =  select new {
                       o.
At this point, Intellisense has NO IDEA what o will refer to. How is it supposed to know that you mean Orders? No possible way it can figure that out with any good assurity. Sure, it can look through your code and see that Orders starts with O and guess, but what if you have 10 or 20 objects in your code that all start with O? Or even with 2 or 3, it starts to get confusing. And what if Orders isn't defined yet? Then what is it supposed to do? I'm using a simplified case here. It's really more complex than I can explain.

>
>The class, namespace, project, solution also.
>Don't tell me that NET framework has limited lines, but Intellisense works.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform