Home /

| RSS

Write To Vista Event Log Using C#

Event Log is a central place to log application events. These events can be errors, warnings or just information. Each event log entry in Windows Vista has a level of event, date and time the event occurred, source of event, an event Id and a task category. While event logs such as Application, System, Security [...]

[ More ] August 7th, 2008 | 10 Comments | Posted in Programming |

StyleCop Tutorial

StyleCop is a source analysis tool for C#. It can be used for analysing source code as opposed to compiled assemblies which is the area for FxCop. StyleCop is currently in version 4.2 and can be downloaded here. In this tutorial I will show you how to use StyleCop.
I will create a simple console application [...]

[ More ] August 7th, 2008 | 11 Comments | Posted in Programming |

Dynamic Sort With LINQ

In this post I will show you how to perform dynamic sorting with LINQ. I will work with a simple collection of City class. City class is defined below.

public class City
{
public string Name { get; set; }
public string Country { get; set; }
}

The collection is initialised using [...]

[ More ] August 4th, 2008 | 5 Comments | Posted in Programming |

Different Ways Of Retrieving Data From Collections

C# as a language has matured over years. We have come a long way from the first version of C# to the current which incorporates LINQ. Here is an example I recently used in a training session. My objective was to show students how we can retrieve items from a collection based on a certain [...]

[ More ] August 1st, 2008 | No Comments | Posted in Programming |
  • Page 2 of 2
  • <
  • 1
  • 2