I am reading about new features in Visual Studio 9.0 (Orcas) (while I am playing with it :) ) and I found there is a new feature in Visual Basic called Relaxed Delegates.
What this means!? For instance you can convert methods to delegate even when methods doesn;t have all parameters (if not used)
This is the sample from Amada Silver:
Another great feature that you’ll
notice in Beta1 is Relaxed Delegates. In short, relaxed delegates
are a way to extend VB’s implicit conversions to delegate types. With relaxed
delegates, you can write the following code:
Private Sub Button1_Click(ByVal
sender As Object,
ByVal e As
EventArgs) _
Handles Button1.Click,
Button1.MouseClick
MsgBox("Do
Something")
End Sub
You can even omit *all* of the event
arguments if your method body doesn’t need them. This improves readability
without compromising type safety:
Option Strict On
Public Class Form1
Private Sub Button1_Click() Handles
Button1.Click, Button1.MouseClick
MsgBox("Do
Something")
End Sub
End Class
A bit unfair to C# but still - this is Visual Basic :)
Today MS signed off on the Beta 1 release for Visual Studio “Orcas” and .NET FX 3.5.
Go and check here.
Visual Studio Code Name “Orcas” Beta 1
Visual Studio code name "Orcas" is the next generation development tool for Windows Vista, the 2007 Office system, and the Web. Beta 1 consists of multiple releases including, Visual Studio Professional Edition, Visual Studio Team Suite and Visual Studio Team Foundation Server, which are available as installation media ISO images you can use to install the products. Alternatively, you can download VPC images with the software pre-installed. In addition, you can download prerelease versions of Visual Basic Express, Visual C++ Express, Visual C# Express, and Visual Web Developer.
For a better download experience, MSDN Subscribers should use MSDN Subscriber Downloads for both installation media ISO images and VPC images.
This news came from Soma
Assemblies of next version of .NET Framework are divided in two groups - "green bits" and "red bits" as they are called inside Microsoft.
The red bits include all the libraries that shipped before as part of the .NET Framework 2.0 and 3.0 (such as mscorlib.dll and system.dll). To maintain a high assurance of backward compatibility for Visual Studio "Orcas," changes in the red bits have been greatly limited.
The green bits assemblies are the brand new libraries with additional classes that work on top of the red bits assemblies. Most of the classes listed in this column are in the green bits assemblies (such as system.core.dll), with a few involving limited changes in the red bits assemblies.
The CLR's contributions to the new libraries include:
- A new add-in hosting model, which was discussed in the last two editions of CLR Inside Out
- Support for the Suite B set of cryptographic algorithms, as specified by the National Security Agency (NSA)
- Support for big integers
- A high-performance set collection
- Support for anonymous and named pipes
- Improved time zone support
- Lightweight reader/writer lock classes
- Better integration with Event Tracing for Windows® (ETW), including ETW provider and ETW trace listener APIs
There are also new crypto classes that covers Suite B set of cryptographic algorithms.
for more info read New Library Classes in "Orcas"
C# Community Program Manager Charlie Calvert posted rough schedule about public chats with C# team
In the April/May time frame there will be three public chats by the C# Team.
April 23, 2007, 11 AM Pacific Time C# Visual Studio IDE Chat: Talk about C# IntelliSense for LINQ. Discuss what else is planned for Visual Studio Orcas. Plus: Code snippets, enhanced IntelliSense, type colorization, refactoring, improved code navigation, metadata as source, Edit and Continue and all the other great new C# IDE features in Visual Studio 2005. There's a lot to talk about! It's your choice! Join the C# IDE team for a chat completely directed by your questions.
May 7, 2007, 11 AM Pacific Time Compiler and Language Chat: C# Language Chat. Want to know more about anonymous delegates in C# 2.0, or our design rationale for them? Have some questions about our current thinking on C# 3.0 and LINQ? Perhaps you'd like to share your ideas with other C# users or the C# language team. Join the C# team chat for an opportunity to do all that and more!
May 21 2007, 11 AM Pacific Time LINQ to SQL Chat: The LINQ Project is a part of the next version of Visual Studio, code named Orcas. LINQ will provide a set of extensions to the .NET Framework that encompass language-integrated query, set, and transform operations. LINQ to SQL is a component of LINQ which allows access to data stored in relational databases. We’re actively designing and developing this technology - show up and join the LINQ to SQL team to participate in that process or just get a better understanding!