FairFeeds - Stories tagged with C# 4.0
1
Votes

Dynamic Types in C# 4.0 – Visual Studio 2010

published 2983 days, 3 hours, 49 minutes ago posted by robertbraveryrobertbravery 2992 days, 21 hours, 27 minutes ago
Saturday, August 22, 2009 2:44:06 AM GMT Wednesday, August 12, 2009 9:05:37 AM GMT
Dynamic type and the dynamic keyword are some of C#'s new features which are tied into Microsoft's new Dynamic Language Runtime (DLR) environment—a new feature of the .NET Framework that enables dynamic languages to reside side-by-side and interoperate with statically typed languages. (more)
Category: Technology | Clicked: 2 | Comment | | Source: www.integralwebsolutions.co.za
Tags: C# 4.0, Visual Studio 2010
1
Votes

Web 2.0 | Dynamic Typing in C# 4.0

published 2988 days, 3 hours, 39 minutes ago posted by farooqkaiserfarooqkaiser 2997 days, 17 hours, 2 minutes ago
Monday, August 17, 2009 2:53:36 AM GMT Friday, August 7, 2009 1:30:42 PM GMT
C# 4.0 introduces a new static type called dynamic. When an instance variable is defined with the type dynamic, the compiler ignores the call and won't complain. These actions are picked up at runtime. Here are comparison with C# 3.0 and C# 4.0 using Dynamic Types. Let's say I have the following code in C# 3.0     // will not work in c# 3.0        object o = "farooq";        Console.Write(o.Insert(o.Length, " Kaiser "));        // will work in c# 3.0       object o = "farooq";       str... (more)
Category: Technology | Clicked: 2 | Comment | | Source: www.fairnet.com
Tags: .NET 4 .0, C# 4.0
1
Votes

Web 2.0 | Named and optional parameters in C# 4.0

published 2988 days, 3 hours, 39 minutes ago posted by farooqkaiserfarooqkaiser 2997 days, 17 hours, 4 minutes ago
Monday, August 17, 2009 2:53:36 AM GMT Friday, August 7, 2009 1:29:14 PM GMT
In this article, I will explore named and optional parameters in C# 4.0 features. Named and optional parameters are really two distinct features, and allow us to either omit parameters which have a defined default value, and/or to pass parameters by name rather than position. Named parameters are passed by name instead of relying on its position in the parameter list, whereas optional parameters allow us to omit arguments to member without having to define a specific overload matching. Let’s have a look... (more)
Category: Technology | Clicked: 3 | Comment | | Source: www.fairnet.com
Tags: .NET 4 .0, C# 4.0