Articles Archive
How to use T4 to generate strongly-typed AzMan wrapper
This article provides a brief overview of AzMan and demonstrates how several existing APIs can be used to perform authorization checks in .NET applications. It then discusses shortcomings of the current APIs and demonstrates how T4 templates can be used to generate a set of C# classes and enumerations that wrap AzMan COM API and allow application developers to write strongly-typed authorization code.
How to use T4 to generate CRUD stored procedures
This article demonstrates how to use SMO and T4 templates to generate CRUD stored procedures in Visual Studio and integrate them in a database project.
How to use T4 to generate Decorator classes
This article demonstrates how to use Introspection and T4 templates to generate C# Decorator classes in Visual Studio.
How to use T4 to generate .config files
This article demonstrates how to create and use a simple T4 template to generate App.config files for development, testing and production environments in Visual Studio.
How to create a simple T4 template
This article demonstrates how to create and use a simple T4 template to generate C# code in Visual Studio without building a DSL or a Guidance package.
T4: Text Template Transformation Toolkit
This article provides an overview of Text Template Transformation Toolkit (T4) and includes links to additional articles about T4 and ready-to-use templates.
The difference between as and () operators in C#
In C#, you have two different ways to perform type casting (a.k.a. explicit type conversion) – as and () operators. The difference between the two operators is not limited to just syntax, they work differently. It is subtle enough to trap even experienced developers, especially those coming from other languages, such as Delphi where meaning […]
Find It Quickly
Find what you're looking for quickly by using our keyword search. Can't find it? Try our links below.


