InfoQ

InfoQ

Topic/Tag specific view

C# 4 Content on InfoQ


Latest featured content about C# 4

Statically Dynamic Typing

Topics
Dynamic Languages,
Java,
.NET,
Language Design

Neal Gafter explains why Microsoft has introduced dynamic typing in C# 4.0, what it is useful for - Interoperate with dynamic languages, Using reflection-like API, Interacting with COM -, what is DLR, and why they have chosen the dynamic type instead of other possible solutions.

News about C# 4

Optional Parameters Are Gaining Ground in .NET

Topics
Language Design,
.NET

Optional parameters have always been part of .NET, but with C# unwilling to support it, using them was generally considered taboo unless work with COM libraries. Now that C# 4 does support them, we are starting to see them used for a lot more than just legacy code. Other uses include interoperability with dynamic languages, immutable data structures, and various parts of ASP.NET MVC.

CSI C# Interpreter Supports .NET 4.0

Topics
.NET Framework,
.NET,
Scripting,
Compilers

CSI is a simple C# interpreter allowing command-line compilation of standalone C# files. A new version has been released to support .NET 4.0. CSI is open source with a full test suite.

Mono Introduces Experimental C# Language Extensions

Topics
Language Design,
.NET

Having caught with the recent advances in Microsoft’s C# 4, the Mono team is now playing with their own extensions to the language. The two features they are experimenting with are string interpolation and support for multiple return values.

Wrapping Stored Procedures in .NET Languages

Topics
Language Design,
Data Access,
.NET

Creating wrapper functions for pre-existing stored procedures is surprisingly difficult in .NET. Stored procedures have certain calling conventions that aren’t generally used in the .NET Framework and many of them are not supported at all. For example, C# doesn’t support optional parameters and neither .NET language supports optional parameters on nullable types.

Making 0 Equal 0 in C#

Topics
Language Design,
.NET

C# does not work well with boxed numerical values. Unlike Visual Basic, the basic numeric comparison operators such as == do not work with boxed types even when both values are the same type. Fortunately with C# 4 you can avoid these problems by using the dynamic keyword.

Articles about C# 4

MicroORM - A Dynamically Typed ORM for VB and C# in about 160 Lines

Topics
Dynamic Languages,
Data Access,
.NET

Using the new DLR features in VB 10 and C# 4 you can build a configuration-free ORM that works well with legacy stored procedures. Though accessed using normal object-dot-property syntax, all the data objects are built at runtime based solely on the information returned by the database. And this is done with no interfaces to define, classes to implement, or data mapping definitions to write.

Interviews about C# 4

Eric Nelson on VS 2010 and .NET 4.0

Topics
.NET Framework,
Cloud Computing,
.NET

In this interview Eric Nelson talks about what’s coming in VS 2010, the C# – VB.NET convergence, the introduction of Parallel as a library, and Azure cloud computing.

Don Syme Answering Questions on F#, C#, Haskell and Scala

Topics
Language Design,
Language,
.NET

In this interview made by InfoQ’s Sadek Drobi, Don Syme, a Senior Researcher at Microsoft Research, answers questions mostly on F#, but also on functional programming, C# generics, type classes in Haskell, similarities between F# and Scala.