Category Archives: Orcas - Page 2

New "Orcas" Language Feature: Lambda Expressions

Scott Guthrie is as usually explaining the new features of the new Orcas Studio. This time he looks over the Lambda Expressions. Up to now they arent supported in VB but only in C#. Looking forward to see them in VB!

So here is what Scott wrote:
step1 New "Orcas" Language Feature: Lambda Expressions

What are Lambda Expressions?

C# 2.0 (which shipped with VS 2005) introduced the concept of anonymous methods, which allow code blocks to be written “in-line” where delegate values are expected.

Lambda Expressions provide a more concise, functional syntax for writing anonymous methods. They end up being super useful when writing LINQ query expressions – since they provide a very compact and type-safe way to write functions that can be passed as arguments for subsequent evaluation.
view original

New Data Tools Features in Visual Studio Orcas

On the Visual Basic Team blog there is interesting post about “New Data Tools Features in Visual Studio Orcas” following are four major ones:

  1. Object Relational Designer
  2. Hierarchical Update in Typed Dataset
  3. N –Tier Support in Typed Dataset
  4. Local Data Cache with SQL Compact Edition

view original

equals versus ==

Interesting subject which Daniel Moth explains:
At a recent event where I was presenting on LINQ, I showed a query with a join, similar to the following:

      var results =      from p in Process.GetProcesses()      join p2 in MyProccess.GetMyProcList()      on p.ProcessName equals p2.MyProcName      where p.Threads.Count > 14      orderby p.ProcessName descending      select new { p2.MyProcDescription, ThreadCount = p.Threads.Count, p.Id };

After the session one of the delegates asked me: “Why do we have to use the equals keyword and not just ==“. In other words he would have preferred to type:
on p.ProcessName == p2.MyProcName
I didn’t have a good answer but promised to look into it.

view original

JScript IntelliSense in Visual Studio "Orcas"

The March CTP of Visual Studio marks the debut of a much-requested and long-awaited feature: improved JScript IntelliSense. We’ve been working on this for almost a year now and I’m pretty excited to finally be able to share it with the public. There are a variety of topics I’d like to deep dive into, but for today let’s just take a quick aerial tour of the new features.
 JScript IntelliSense in Visual Studio "Orcas"
view original