Ana içeriğe atla

Yayınlar

.Net 4.0 etiketine sahip yayınlar gösteriliyor

C# 4.0: dynamic ?

I've not played with the VS2010 CTP much yet, and I've only looked briefly at the documentation and blogs about the new C# 4.0 dynamic type, but a thought occurred to me: why not have the option of making it generic as a way of saying "I will dynamically support this set of operations"?As an example of what I mean, suppose you have an interface IMessageRouter like this:public interface IMessageRouter
{
void Send(string message, string destination);
}
(This is an arbitrary example, by the way. The idea isn't specifically more suitable for message routing than anything else.)I may have various implementations, written in various languages (or COM) which support the Send method with those parameters. Some of those implementations actually implement IMessageRouter but some don't. I'd like to be able to do the following:dynamic<IMessageRouter> router = GetRouter();
// This is fine (but still invoked dynamically)
router.Send("message", turhal.tem…

Visual Studio 2010 CTP VPC: Dealing with Activation Messages

Conjunction with PDC 2008, we are releasing the first Community Technology Preview of Visual Studio 2010 and the .NET Framework 4.0. You can download the release here (also see my download manager post here for a better download experience). This is an exciting release, and is jammed packed with a ton of great new features. One really nice thing about this release is the amount of work that the product teams put into writing walkthroughs which will guide you through most of the new features. I believe this will be our highest-quality Community Technology Preview yet, and we're excited to start getting your feedback on it. This CTP is being delivered as a Virtual PC (VPC) image that you can download and run locally. In the future, we will provide a way for you to install the software on your own machine, but given where we're at with building the product the setup experience isn't quite ready. The VPC image gives us a great alternative for getting the software to you as ear…

Visual Studio 2010 Download

Download link: Microsoft Pre-release Software Visual Studio 2010 and .NET Framework 4.0 Community Technology Preview (CTP) –> 7286.0 MBSystem RequirementsSupported Operating Systems: Windows Server 2003; Windows Server 2008; Windows Vista; Windows XPMinimum 75 GB available HDD spaceThe host computer must have a minimum of 2 GB RAM, with 1 GB allocated to the host operating system and 1 GB allocated to the VPC.We recommend that the host computer CPU be at least a Core Duo 2 GHz processor.Service Pack 1 of Microsoft Virtual PC 2007 is required to access the VPC.
To upgrade Microsoft Virtual PC 2007 to Service Pack 1, download and install the update from: http://www.microsoft.com/downloads/details.aspx?FamilyID=28c97d22-6eb8-4a09-a7f7-f6c7a1f000b5&DisplayLang=en
If the host computer has more than 2 GB RAM, you can increase performance of your VPC by allocating more memory to the VPC. After that change to the VM settings, you will need to update the page file inside the guest OS to b…