Blackwasp - blackwasp.co.uk - BlackWasp Latest Additions
General Information:
Latest News:
File and Folder Timestamps 30 Nov -0001 | 12:00 am
Microsoft Windows maintains three timestamps for all files and folders. These are the creation time and the times that the item was last accessed and updated. These timestamps can be accessed and upda...
Locking for Thread Synchronisation 30 Nov -0001 | 12:00 am
Using multi-threading or parallel programming techniques can improve the performance and responsiveness of software but introduces the risk of race conditions that can cause intermittent bugs. These c...
Thread Synchronisation with the Monitor Class 30 Nov -0001 | 12:00 am
The lock statement provides a simple way to block access to critical sections of code in multi-threaded and parallel software. When more flexibility is required, the members of the Monitor class can b...
Folder Recursion with C# 30 Nov -0001 | 12:00 am
Some applications must read the folder structure beneath an existing folder or for an entire disk or attached device. The standard method in the Directory class can cause problems when used for this p...
Cancelling Parallel LINQ Queries 30 Nov -0001 | 12:00 am
Parallel Language-Integrated Query (PLINQ) provides the performance benefits associated with parallel tasks, with the declarative approach of LINQ. This powerful combination also supports cancellation...
Mocking Multiple Interfaces with Moq 30 Nov -0001 | 12:00 am
Injected dependencies often implement more than one interface. These may be used by the class receiving the injected object. When testing classes with such dependencies, it can be useful to create moc...
Disabling Capitalised Menus in Visual Studio 2012 30 Nov -0001 | 12:00 am
Visual Studio 2012 includes many design changes within the integrated development environment (IDE). One, which has been somewhat controversial, is the use of capitalised menus. For developers who fin...
Setting the Title for Console Applications 30 Nov -0001 | 12:00 am
The title bar for a console application that is executed from a command prompt generally shows a default title, rather than the name of the console application. This title can be modified by setting a...
A LINQ Style Duplicate Item Finder 30 Nov -0001 | 12:00 am
Language-Integrated Query (LINQ) includes a number of set operators, including one that removes duplicates from a sequence to return only distinct values. This article describes a custom set operator ...
Async and Await 30 Nov -0001 | 12:00 am
Asynchronous operations are particularly suited to slow processes that would otherwise block the user interface thread and make applications unresponsive. In the past asynchronous code has been compli...