The Developer Stash

Arbitrary Contemplations
posts - 20, comments - 29, trackbacks - 0

My Links

News




Locations of visitors to this page

 





Elroy D'silva's Blog

Twitter












Archives

Post Categories

Blogs I read

October 2008 Entries

Did you know the two uses of ‘default’?

You’ve used the default keyword in C# as many times as possible in switch statements to indicate the default operation to be carried out. That’s one place where you would normally use the default keyword. You can also use the default keyword in generic code where it specifies the default value of the type parameter which is null for reference types and zero for value types.Read More..

posted @ Friday, October 31, 2008 7:22 PM | Feedback (0) | Filed Under [ .NET C# ]

Conditional compilation in C#

Programmers need to debug, debugging sometimes requires identification of points in your program where a programmer would like to insert code that would help him/her to debug his/her code efficiently. A simple example might be inserting a Console.Writeline() call that prints out values or indicates completion (successful or unsuccessful) of the executed part. However, these lines can clutter up the code structure and also needs removal of the debugging code for the release of the entire software

posted @ Friday, October 31, 2008 6:55 PM | Feedback (4) | Filed Under [ .NET C# ]

Covariance and Contravariance in delegates

If you’ve used delegates while programming you probably know about covariance and contravariance in delegates that provide a degree of flexibility when you match method signatures with delegate types. Read More...

posted @ Wednesday, October 22, 2008 2:29 PM | Feedback (2) | Filed Under [ .NET C# ]

Powered by: