BlackWasp

Stories submitted by BlackWasp

Object Pipelines(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 2 days, 4 hours ago

A pipeline is a chain of connected steps that process information. In object pipelines, each step receives an object and performs an action using it before passing an object to the next step. This repeats until every step is complete. read more...

add a comment |category: |Views: 107

tags: another

Disabling the Screensaver Programmatically(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 9 days, 5 hours ago

Screensavers can be a useful tool for protecting some types of display from damage or a visually pleasing alternative to the open windows when a computer is not in use. For some types of software it is necessary to temporarily disable the screensaver. read more...

add a comment |category: |Views: 1

tags: another

Creating Type Aliases in C#(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 11 days, 5 hours ago

The using directive of the C# programming language is often used to create namespace aliases, allowing types with matching names that appear in separate namespaces to be easily accessed. A lesser known use of the directive is to create aliases for types. read more...

2 comments |category: |Views: 265

tags: another

Detecting Power Events(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 20 days, 11 hours ago

Microsoft Windows raises notifications in response to power events, including when the user sleeps, hibernates or resumes the computer, or when the power supply switches between battery mode and A/C power. The notifications can be detected using events. read more...

add a comment |category: |Views: 5

tags: another

Creating Parallel Tasks with TaskFactory(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 23 days, 5 hours ago

The Task Parallel Library provides a number of ways in which parallel tasks can be instantiated. This article describes the use of the TaskFactory class, which uses the factory method design pattern to generate and start tasks with a single method call. read more...

1 comment |category: |Views: 184

tags: another

An Extensible Appointment Scheduling Library(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 27 days, 5 hours ago

Scheduling software can be used to plan future appointments, including those appointments that repeat on a regular basis. This article describes a library with four types of scheduling rule and the potential for additional rules to be incorporated. read more...

add a comment |category: |Views: 13

tags: another

Adding Lists and Tables to XML Documentation(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 1 month ago

Bullet lists, numbered lists and tables provide useful ways to provide information about the use of a framework, a single class or a member. These ways of displaying data can be included in XML documentation comments and compiled into help files. read more...

add a comment |category: |Views: 2

tags: another

SQL Server Transaction Savepoints(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 1 month, 5 days ago

Sometimes Transact-SQL (T-SQL) scripts require the ability to roll back some parts of a transaction whilst allowing other elements of a process to be committed to the database normally. This can be achieved with the use of transaction savepoints. read more...

2 comments |category: |Views: 46

tags: another

Using the DebuggerBrowsable Attribute(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 1 month, 18 days ago

Visual Studio's debugging windows and tools allow you to examine in-scope objects and the values contained within their properties, indexers and fields. When this is undesirable, a class may change the way in which its debugging information is provided. read more...

add a comment |category: |Views: 121

tags: another

A LINQ Style Range Generator(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 1 month, 25 days ago

Language-Integrated Query (LINQ) provides the Enumerable.Range method that generates incrementing sequences of integers. This article describes a similar method that allows the creation of more complex ranges with the repeated application of a function. read more...

add a comment |category: |Views: 5

tags: another

Application Setting Events(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 2 months, 6 days ago

Application settings provide a useful means for configuring applications and retaining user settings between program executions. When it is necessary to monitor those settings for changes, four standard events can be subscribed to. read more...

add a comment |category: |Views: 93

tags: another

Generating Random Pronounceable Passwords(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 2 months, 8 days ago

The use of passwords as a security measure is increasingly common for technical and non-technical users alike. Generating passwords that are both strong and memorable can be difficult. This article describes one method to alleviate this problem. read more...

add a comment |category: |Views: 6

tags: another

.NET Known and System Colours(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 2 months, 14 days ago

The Color class can represent over sixteen million colour shades with over two hundred and fifty levels of transparency. Often, however, a simple, named colour or a system colour is desired. These can be obtained using the KnownColor enumeration. read more...

add a comment |category: |Views: 8

tags: another

Thread-Safety with the Interlocked Class(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 2 months, 27 days ago

When developing multi-threaded software or using parallel programming techniques, it is essential that classes remain thread-safe. The Interlocked class provides methods that assist with thread safety by performing atomic operations. read more...

1 comment |category: |Views: 120

tags: another

The Law of Demeter(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 3 months, 7 days ago

Coupling in object-oriented software indicates the level to which classes are reliant upon each other. A tightly coupled system is usually harder to maintain and modify than a loosely coupled one. The Law of Demeter addresses a specific coupling problem. read more...

add a comment |category: |Views: 2

tags: another

Documenting Exceptions(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 3 months, 11 days ago

Code can be decorated with XML documentation comments, which can be compiled into documentation files. When members can throw exceptions, the comments can include a description of each expected exception and the reasons why it may be thrown. read more...

2 comments |category: |Views: 122

tags: another