C#


Generic Covariance and Contravariance in C# 4.0

Covariance and contravariance are precise terms that describe which conversions are safe on parameters and return types. Learn practical definitions for those terms, what new constructs will be supported in C# 4.0 and how to live with the current limitations until Visual Studio 2010 is adopted by your organization.

Make Your Code Clear

There are multiple ways to solve every problem. Strive for code that communicates your intent and makes your meaning clear for every developer who uses it.

Working with MEF

Learn how to free your application from dependencies and interchange implementations using Managed Extensibility Framework.

Adobe Says Flex-Based Component Tools Coming, IBM's ILOG Upgrades Elixir Suite

Look for a third-party market of component tools that allow developers to build business applications based on Adobe's Flex rich client programming platform to emerge this year.

Display Multiple Pages in Silverlight

Learn how to display multiple pages in Silverlight and discover the tools and controls that ship with it; track down a bug in a case statement; and take advantage of helpful tips for trying to obtain a clean Code Analysis.

Coverity Prevent and Quince UX Patterns Explorer

Improved support for managed and native code in static-analysis software.

Generate Code from Custom File Formats

Create a custom tool to provide a flexible and easy way to generate code on demand.

Create Anonymous Types

Taking a careful look at the capabilities the compiler gives to anonymous types provides an excellent tutorial on what you should consider when you create your types -- including whether they are classes or structs.

Use Iterators in VB Now

Iterators are a crucial part of modern programming, not least because they provide the basis for collection traversal using For Each loops. Language Integrated Query (LINQ) adds to the importance of iterators, as iterators are the source of IEnumerable(Of T) that forms the backbone of LINQ. Learn how to take advantage of them in your code with several different techniques for creating your own iterators in VB.

Use Lambda Expressions for Abstract Delegates

Lambda expressions are nothing more than convenient syntax for delegates. So why can't you use them where the Framework expects a delegate? And more importantly, what can you do about it?

Where Did All The Developers Go?

If programmers are leaving VB and aren't going to C#, where are they going?

Retire Your Data Center

Visual Studio 2008, ASP.NET, and the Azure Services Platform combine to simplify local development of data-intensive Web apps and automate their deployment in Microsoft data centers. The result: You get maximized availability and reliability with almost limitless on-demand scalability, while you pay only for resources consumed.

Developers Debate over Future of C#

Developers respond to Microsoft Technical Fellow Anders Hejlsberg's discussion on the future direction of C#.

Target Multiple .NET Frameworks

Many developers have the misconception that targeting older versions of the Framework means you can't use any of the new C# language features. It's time to dispel that myth.

Speed O/R Mapping with LINQ to SQL

LINQ to SQL continues to be a top contender in the .NET object/relational mapping tool market despite Microsoft's promotion of the Entity Framework as one of the "Pillars of SQL Server 2008: Dynamic Development."

What C# Devs Should Know About VB Programming

VB and C# share many similarities, but also have a handful of significant differences; learn what you need to know to program effectively in VB as a C# programmer.

On the Benefits of Learning Multiple Languages

Developers of VB and C# can learn a lot from the similarities -- and differences -- between the two.

What VB Devs Should Know About C# Programming

Chances are C# is not your first programming language. Here are several tips that can help you leverage C# better if you already know VB.NET.

Control Exceptions

Take control of casting exceptions, determine whether parent records have children in LINQ to SQL, and resolve cref references in XML comments.

Combine Generics and Functional Programming

Mixing generics and functional programming simplifies writing some extensibility libraries tremendously. For example, combining these techniques makes it easy to create a generic Undo library.

Upcoming Events

.NET Insight

Sign up for our newsletter.

I agree to this site's Privacy Policy.