Technical Blog

Entries for the 'C#' Category

In many cases you may need to be able to call a function and return multiple values.  Many times this functionality is implemented by utilizing an array or similar object as the return value and simply reading the contents back into variables.

[Read more...]

Posted in: C#

» Permalink
Both out and ref parameters are used to return values in the same variables that you would pass as an argument of a method. Both types of parameters can be useful in an event where you would like to return more than one value from your method.

[Read more...]

Posted in: C#

» Permalink
The System.Diagnostics.EventLog class allows you to programmatically read and write to the Windows Event log.  This functionality allows you to read and write your application logs to the Windows Event Log rather than writing these log entries to a text-based file.  This logging methodology provides a quick, easy, and performance friendly way to log any type of event.  The EventLog class extends beyond simply writing log entries (reading from logs, creating/deleting event sources, deleting logs, etc.) but this article is geared specifically toward writing to the Windows Event Log.

[Read more...]

Posted in: C#

» Permalink
The DNN Event Viewer and its hooks provide functionality that are extremely extensible allowing developers to quickly incorporate event logging into their application (custom modules) by utilizing the DNN Core Framework.  Writing to the DNN Event Log provides portal administrators with a friendly and unified interface to track trival, minor, and major events of all varieties (success or failure).

[Read more...]


» Permalink
Page 2 of 2First   Previous   1  [2]  Next   Last