Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » C#   (RSS)

Generic delegate in C# 3.0 or .NET 3.5

As we do event-based programming or implement publish-subscribe pattern, we use the delegate feature from .NET heavily. The sample code below demonstrates simple usage of the feature. public delegate void DataChangedDelegate ( int oldValue, int newValue);
Posted by zainala | 3 Comments

Debugger extension in Visual Studio - Part 2

Continuing my previous post on using type proxy for extending the debugger feature in Visual Studio, I want to provide another example using two useful debugger-related attributes: DebuggerDisplay and DebuggerBrowsable . Let's review the last output on

Debugger extension in Visual Studio

Visual Studio provides some nice features to allow us extending the debugging capability. This time I want to review about type proxy feature. Type proxy acts as a converter that takes a class type as input and produces a new class type as its output

Another variation of using new operator in C#

I've just learned about another variation we can use in C# to instantiate a class and set its member fields or properties. It's good to know in case you haven't known about it yet. For example, let's say we have a class Foo with following code: class
Posted by zainala | 1 Comments
Filed under: ,
 
Page view tracker