What’s new in Visual C# 4.0 ? – Part 3 – Dynamic ExpendoObject

27 באוקטובר 2009

This is the third post of what’s new in Visual Studio C# 4.0. At the former posts we covered optional parameters, Named Parameters at this post we will cover C# Dynamics and ExpandoObject dynamic & ExpendoObject C# 1.0 introduced us to the managed world (based on Microsoft perception) C# 2.0 brought us Genetic types. C# 3.0 introduced us to new concept – LINQ C# 4.0 highlight is all about Dynamic Types Say for example that you have the need to create an object on the spot and use it in a local scope, without dynamic type you had to define a class and then create...

Free training on Visual Studio 2010 and C# 4.0

Did you know that you can train yourself for what’s new in Visual Studio 2010 and C# 4.0 (also VB) ? The Microsoft Visual Studio 2010 and .NET Framework 4 Training Kit - October Preview is available for more than a week now and it includes lots of slide decks, demos and labs covering the following topics: Whats New In the .NET Framework 4 Whats New In Visual Studio 2010 Video: Downloading And Installing Visual Studio 2010 Beta 2 Demo: Hello Visual Studio 2010 Common Language Runtime Demo: System.Threading.Barrier Demo Demo: System.Threading.CountdownEvent Managed Languages What's New In C# 4 and Visual Basic 10 Video: Fixing PIA Pains...

What's new in Visual C# 4.0 ? – Part 2 – Names Parameters

This is the second post of what’s new in Visual Studio C# 4.0. At the former post we reviewed the feature of optional parameters at this post we will concentrate on Named Parameters. Named Parameters Lets assume you are writing the following procedure : public static void SaySomething(string name, string msg)         {             Console.WriteLine(string.Format("Hi {0} !\n{1}", name,msg));         } When you want to call it from your code you are using something like: Code Snippet static void Main(string args)         {             SaySomething("Ohad","What's up?");             Console.ReadLine();         } What’s the problem ? Although you will have intellisense while you are coding it for the reader of the code its unclear what is the first parameter and what is the second...

What's new in Visual C# 4.0 ? – Part 1 – Optional parameters

This is the first blog from a series of blog post which I'm planning to do on whet’s new in Visual C# 4.0 Optional parameters Optional parameters is a new feature in C# 4.0 which will let you set a default value for an argument of a method. In case that the collie of the method will omit the argument the default value will take its place. So instead of writing the following code: class Program     {         static void Main(string args)         {             SaySomething();             SaySomething("Ohad");             Console.ReadLine();         }         public static void SaySomething()         {             Console.WriteLine("Hi !");         }         public static void SaySomething(string name)         {             Console.WriteLine(string.Format("Hi {0}!",name));         }     } You will only have to write: class Program     {         static void Main(string args)         {             SaySomething();             SaySomething("Ohad");             Console.ReadLine();         }         public static void SaySomething(string name = "")         {             Console.WriteLine(string.Format("Hi...
no comments

Download Visual Studio 2010 Beta 2 (No need for MSDN)

22 באוקטובר 2009

As for today you can download Visual Studio 2010 Beta 2 even if you don’t have access to MSDN. Just follow the links below and download your favorite version. Visual Studio Visual Studio 2010 Ultimate (web bootstrapper) Visual Studio 2010 Ultimate (.ISO) Visual Studio 2010 Premium (web bootstrapper) Visual Studio 2010 Premium (.ISO) Visual Studio 2010 Professional (web bootstrapper) Visual Studio 2010 Professional (.ISO) Visual Studio 2010 Remote Debugger Visual Studio Extensibility ...
no comments

Visual Studio 2010 Training Sources

Visual Studio 2010 & .NET Framework 4 Training Kit The October preview of the Visual Studio 2010 & .NET Framework 4 Training Kit which has content that had been tested with Beta 2 is ready for download. Download: Visual Studio 2010 and .NET Framework 4 Training Kit Training Course on Channel 9 Channel 9 launches an online learning center that will play host to developer focused training courses created by developers for developers.  The videos and labs, with links to extensive training kits, will get you started on hands-on-learning...
no comments

Enable VS 2010 Multi Targeting also for VS2005 C++

20 באוקטובר 2009

One of the big new features for the C++ world in VS 2010 is "native multi-targeting". This means that an MSBuild-based VC project can be built against any set of tools (compilers, linkers, headers, libs, etc). VS 2010 ships with support for targeting either the 2010 toolchain or the 2008 toolchain. But the design allows you to target just about any version - and still load and work with it in the VS 2010 IDE. Take the attached file that I’ve prepared and open it inside: %PROGRAMFILES%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets\ And now you will now be able to target to v80 (vs2005) and not just...
no comments

Visual Studio 2010 Feature Overview

19 באוקטובר 2009

Microsoft just published collection of walkthroughs for Visual Studio 2010 Beta 2. The walkthroughs provide step-by-step instructions for common scenarios in the areas of: SharePoint Development Silverlight and WPF Data Binding Core Coding Experience Native Development Parallel Computing Visual Studio Extensibility Office Development Workflow Foundation Check it out over here      

VS 2010 Beta 2 Released & VS 2010 RTM Date published

Finally its here ! “Microsoft announces the second Visual Studio 2010 beta and .NET Framework 4 beta two have been released to MSDN subscribers with everyone else getting code on October 21” “Microsoft will announce Visual Studio 2010 will officially launch on March 22, 2010” “New features include Windows 7 and SharePoint 2010 tools, drag-and-drop bindings with Silverlight and Windows Presentation Foundation, the inclusion of the Dynamic Language Runtime (DLR) for programming with scripting languages, and support for parallel programming.” http://www.theregister.co.uk/2009/10/19/visual_studio_2010_second_beta_packaging/ Its live on MSDN !
no comments

Ruby – Programmers Best Friend – Tomorrow at the NZUG

12 באוקטובר 2009

Do you want to see dynamic language for real ? Do you want to hear about real projects using it ? Do you want to know what .NET has to offer in this area ? Tomorrow at the Ness Tziona Usergroup you can get answers to these questions and more… Follow my former post about the meeting … Or look at the following link: קהילת נס ציונה - Introduction to Ruby – A programmers best friend
no comments