BlackWaspTM

This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

<< Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Next >> |
Decimal Values and Trailing ZeroesDecimal Values and Trailing Zeroes
The System.Decimal data type differs from other floating-point data types in the way that it represents the number of digits after the decimal point. With decimals, the precision of the number is retained, even if the trailing digits are not significant.
Exiting a Program with an Error CodeExiting a Program with an Error Code
When a program exits, it is common to return an integer value to indicate the closing state. If the program closed normally, this value is generally zero. Other values usually provide error codes that allow the caller to identify problems.
Doubly-Linked Lists and LinkedList&lt;T&gt;Doubly-Linked Lists and LinkedList<T>
A linked list is a data structure that holds a sequence of values. In a doubly-linked list, each item in the collection includes a pointer to the previous and next elements. This allows insertions and deletions to be performed quickly and efficiently.
Removing Diacritics from StringsRemoving Diacritics from Strings
Diacritics are additional decorations or glyphs that are added to letters or symbols to modify the pronunciation or meaning of a character. For some functions, such as text-based searches or string comparison, it is useful to ignore diacritical marks.
Using Environment.FailFastUsing Environment.FailFast
When an application becomes critically unstable, it is sometimes better to exit, rather than risk corruption. If even exiting normally could cause damage to data, it is appropriate to ignore any exception handling and stop the process immediately.
The Generic EventHandler DelegateThe Generic EventHandler Delegate
In .NET 1.1, creating a custom event with event arguments often included the declaration of a new delegate. In .NET 2.0 and with the introduction of generics, the process is simplified with the standard EventHandler<T> delegate.
Capturing the Standard Output of a ProcessCapturing the Standard Output of a Process
Rather than recreating some functionality, it can be easier to launch existing processes. When a program can output textual information and error details, the software launching the process can subscribe to events and capture that information.
A Reusable INotifyPropertyChanged Extension MethodA Reusable INotifyPropertyChanged Extension Method
The INotifyPropertyChanged interface is applied to classes that need to create notifications when their property values are updated. One problem with the usual manner of implementing the interface is the use of literal strings to specify property names.
Obtaining Caller InformationObtaining Caller Information
When using the .NET framework version 4.5, it is possible to obtain information about the caller of a method without using a stack trace. This is achieved by decorating method parameters with one of three new caller information attributes.
Weak References in .NET 4.5Weak References in .NET 4.5
The WeakReference class provides a way to create weakly referenced objects that may be released by the garbage collector when memory pressure is high. An improved, generic version of this class was introduced in the .NET framework version 4.5.
<< Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Next >> |