How To


Windows Workflow Changes Direction

Learn how Windows Workflow Foundation (WF) 4.0 changes everything you thought you knew about workflow. Also, learn why using string primary keys is a bad idea; find out where to get a data grid for Windows Presentation Foundation (WPF); overcome the annoying issue of files not loading at runtime; and copy files into the executable directory.

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.

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.

Add Distinction to Your Code

Learn how LINQ, extension methods, and lambda functions can help you add a bit of distinction, simplicity, and robustness to your code.

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.

Create a Data-Driven Messaging System

Hard-coded messages don't scale well, and .NET's inherent error messages are user-unfriendly. Learn how to create a more scalable and user-friendly data-driven messaging system.

Achieve Low-Impact Reuse

Sometimes it makes more sense to separate functionality you use repeatedly into its own component. Learn how to create a special command-line processing component.

Understand Your Code Better

Visual Studio Team System's Code Metrics feature isn't perfect, but if you understand what it's measuring and how, you can use it to gain insight into your apps' overall complexity and to spot potential problem areas.

Customize Code Generation in EF

Learn how to exclude attributes from the code that Entity Framework generates for you automatically.

Define Your Own Item Templates

Take advantage of C#'s Item Templates to automate tasks that you find yourself having to perform on a regular basis.

Call Oracle from ADO.NET

Learn to access enterprise data stored in Oracle database servers by calling PL/SQL stored procedures from ADO.NET client applications and discover implementation strategies for dealing with common business scenarios.

Choose Between Methods and Properties

Language features aren't good or bad. The choice of language feature depends on what you're doing. In this issue, we dive into the methods vs. properties debate.

Customize Your Application Startup

Customize your application startup screen and add log-in functionality; learn how to view derived types in your projects; check for improper GUIDs; and drill down on extension methods.

Inside Arrays

Drill down on how arrays work and learn some cool tips and tricks for taking advantage of them in .NET.

Test-Drive SQL Server Data Services

Microsoft readies its new "cloud database" by hosting beta versions of REST and SOAP protocols for performing CRUD operations on clustered, customized SQL Server 2008 instances. These instances are organized as massively scalable, super-reliable, highly available Web services.

Return Double Values in Excel

Learn how to work around a couple bugs in Excel to return double values; drill down on lists with anonymous types; and learn the difference between Build and Rebuild.

Make Your Types Report Their State

You probably write a lot of code to test object state. A better approach might be to make your objects report their own state.

Resize Textboxes Easily

Use .NET's inheritance or extensibility to improve VB's textbox layout.

Use Recursion to Clear out Textboxes

Clear out textboxes using recursion and LINQ; use VB literals to transform an XML document; and eliminate an annoying artifact of VB internals.

Extend Your Apps with External Add-ins

Take advantage of the System.AddIn namespace to handle logic external to your application; don't get caught by Excel's one-based indexes; and make LINQ extension methods work with ArrayLists.

Treat Code as Data

Take advantage of new features in C# 3.0 that let you treat code as data -- and save time over more traditional, imperative approaches to programming.

Reduce Code and Server Roundtrips

Utilize table-valued parameters to write less code and to achieve higher application performance.

Access Non-.NET APIs with PInvoke

Use PInvoke to take advantage of Windows APIs that aren't part of the .NET Framework.

Subscribe on YouTube