Create a class to add Error, Warning, and Information entries in the Windows event log.
.NET Tip: Writing to the Event Log
Published 04/30/2008
Create a class to add Error, Warning, and Information entries in the Windows event log.
Allow a single call to your method to return multiple objects using the ref keyword with parameters.
Allow your classes to easily be sorted they way you would like by implementing the IComparable interface.
Use @-quoted strings to avoid escape characters in your string literals.
Use LINQ to Objects to easily sort and reshape your data.
LINQ can be used for much more than just accessing data stored in your database. Learn how you can use the from clause with other types of data.