September 11, 2009

DevX - Software Development Resource

Send Email Using a DNS Server

An easy way to send mail from .NET is to use the DnsMailClient class. Here’s some sample code in both C# and VB: // in C#MailMessage msg = new MailMessage();msg.From

DevX - Software Development Resource

Adding Workdays to a Date

This example adds the days of the week and the weeks separately. You never iterate over the loop more then four times regardless of the number of days being added.

DevX - Software Development Resource

Avoiding the Perils of C++0x Data Races

ace conditions are an inherent part of parallel programming. A race condition exists any time a program’s behavior may depend on the relative ordering of events on separate threads. In