.NET news » C# 
Using P/Invoke to Call Unmanaged APIs from Your Managed Classes
Learn how to use P/Invoke to call unmaged Win32 APIs from managed code. These sample applications show how to mute sounds, change Windows resolution, and display ballon tips from your managed code.
16 Mar 2006, 15:19:57 Source: Using P/Invoke to Call Unmanaged APIs from Your Managed...
Tags: C#
VB.NET
Sending complex emails in .NET 1.1
This article describes complex issues about sending emails in .NET 1.1 (such as using a SMTP server that requires authentication).
Using IFilter in C#
Using the IFilter interface to extract text from various document types
Performance Quiz #9 : IList<T> List and array speed
A short and sweet quiz with lots of juicy discussion possibilities:
public int Sum(IList<ushort> indices)
{
int result = 0;
for (int i = 0; i < indices.Count; i++)
result += indices[i];
return result;
}
Considering only the time it takes to do the Sum (i.e. assuming we had already set up the array/list) which gives better performance and why?
// #1
ushort[] tmp = new ushort[500000]; // this doesn't count
Sum(tmp);// this is what we are timing
OR
// #2
List<ushort> tmp = new List<ushort>(500000); // this doesn't count
for (int i = 0; i < 500000; i++)tmp.Add(0); // this doesn't count
Sum(tmp); // this is what we are timing
What say you gentle readers?
9 Mar 2006, 18:31:00 Source: Performance Quiz #9 : IList<T> List and array speed
Tags: Performance
C#
Descriptive Enumerations
Using .NET 2.0 generics to allow for enum like classes with human readable descriptions.
Persisting Rich Text
Extending the RichTextBox to support form persistance and data binding.
Validation with Regular Expressions Made Simple
This article aims at making regular expressions simple. By the time you are done, you will be able to write simple validators, and you will know enough about regular expressions to dig into it further without slitting your wrists.
Sound Experiments in Managed DirectX
Using static and streaming sound buffers in Managed DirectX.
Download the Free C# Code Snippet Libraries for Visual Studio 2005
Get the full set of C# Code Snippets for using within Visual Studio 2005 to have reusable, task-oriented blocks of code that you can easily paste into your development projects.
23 Feb 2006, 17:37:38 Source: Download the Free C# Code Snippet Libraries for Visual...
Tags: C#
Examples
Visual Studio
Fast/Compact Serialization Framework
A simple and fast way of "serializing objects by value" to compact binary representations.


