So much for global warming… (it’s just an excuse for the government to ask more taxes!!!)
Update:
Let me clarify my comment ^.
It’s a JOKE! (yet still the government uses it as an excuse!)
An update for Windows Live Messenger has just been released, it includes an updated GUI, and it finally displays custom emoticons
Messenger itself notifies you of the update
Using lambda functions you can shorten your event handlers.
E.g.:
With a normal event hander:
class Test
{
private Timer timer;
private void Timer_Elapsed(object sender, ElapsedEventArgs e)
{
Console.WriteLine(string.Format("Object: {0} sends: {1}", sender, e));
}
public Test()
{
this.timer = new Timer();
this.timer.Elapsed += new ElapsedEventHandler(this.Timer_Elapsed);
this.timer.Interval = 100;
this.timer.Start();
}
}
With an anonymous function:
class Test
{
private Timer timer;
public Test()
{
this.timer = new Timer();
this.timer.Elapsed += delegate(object sender, ElapsedEventArgs e)
{
Console.WriteLine(string.Format("Object: {0} sends: {1}", sender, e));
};
this.timer.Interval = 100;
this.timer.Start();
}
}
And with an anonymous lamba:
class Test
{
private Timer timer;
public Test()
{
this.timer = new Timer();
this.timer.Elapsed += (sender, e) => Console.WriteLine(string.Format("Object: {0} sends: {1}", sender, e));
//or you can explicitly type your parameters:
this.timer.Elapsed += (object sender, ElapsedEventArgs e) => Console.WriteLine(string.Format("Object: {0} sends: {1}", sender, e));
this.timer.Interval = 100;
this.timer.Start();
}
}
And with a named lamda:
class Test
{
private ElapsedEventHandler elapsedEventHander;
private Timer timer;
public Test()
{
this.timer = new Timer();
this.elapsedEventHander = (sender, e) => Console.WriteLine(string.Format("Object: {0} sends: {1}", sender, e));
this.timer.Elapsed += this.elapsedEventHander;
this.timer.Interval = 100;
this.timer.Start();
}
}
Which one to take? The one that suits you and your current application / case!
Sidenote: sorry for the layout, I will fix it ASAP. Fixed
(I quote):
Developer Express and Microsoft are proud to announce a new version of CodeRush licensed exclusively for C# developers working in Visual Studio. The new product is called CodeRush Xpress, and it includes a fresh selection of hand-picked features taken from CodeRush and Refactor! Pro.
And I love it! It has very handy functions for refactoring your code very fast!
I recommend it for everyone!
Usefull links (both contain the downloads):
If you are interested in learning the features you can access these movies:
Dustin Campbell also presented a video on this tool, among other useful Visual Studio 2008 shortcuts on PDC 2008, you can find it here (click below for wmv-hd download).
For those who like to live on the edge:
Remember that there is a change when you install this on your workstation you might need to reinstall Vista if problems occurs, I AM NOT RESPONSIBLE for this.
Since this is a fairly unknow website, I thought on pointing it to you:
It detects the entered language, and the translation is quite accurate. Not as good to use in a paper, but good enough to understand
I just downloaded the Visual Studio 2010 CTP (you can get it here) (an easier way to download the CTP is described here).
When you have downloaded everything you will end op with an VHD (Virtual HardDisk) and VMC (Virtual Machine Configuration). The first one contains the actual C drive of the VM, and the VMC some (default) configuration.
These files are useless in VMware, because you can’t load the VMC, nor can you use the VHD.
But you can convert the VHD (the hard disk) to a VMware-readable format.
These are the steps:


Good luck!
Problems? Leave a comment