.NET news » C# C# Rss Feed

download
Filtering properties in a PropertyGrid
This articles describes some easy ways to filter the properties displayed in a Microsoft PropertyGrid.
27 Mar 2006, 08:57:00   Source: Filtering properties in a PropertyGrid   Tags: GUI C#
math / function / boolean /string expression evaluator
C# .NET assembly that executes numeric, date, string, boolean, comparison, etc. expressions.
20 Mar 2006, 03:03:00   Source: math / function / boolean /string expression evaluator   Tags: 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).
16 Mar 2006, 02:58:00   Source: Sending complex emails in .NET 1.1   Tags: Internet C#
Using IFilter in C#
Using the IFilter interface to extract text from various document types
12 Mar 2006, 04:49:00   Source: Using IFilter in C#   Tags: Examples C#
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.
3 Mar 2006, 11:21:00   Source: Descriptive Enumerations   Tags: C#
Persisting Rich Text
Extending the RichTextBox to support form persistance and data binding.
3 Mar 2006, 09:02:00   Source: Persisting Rich Text   Tags: Components GUI C#
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.
28 Feb 2006, 16:10:00   Source: Validation with Regular Expressions Made Simple   Tags: Examples C#
Sound Experiments in Managed DirectX
Using static and streaming sound buffers in Managed DirectX.
27 Feb 2006, 13:15:00   Source: Sound Experiments in Managed DirectX   Tags: Multimedia Examples C#