Wednesday 20 April 2011

Dot.Net: Set Property Value using Reflection

Question:
How can I set private properties of an object using reflection ?
How to set or get properties dynamically ?

Tuesday 19 April 2011

Dot.Net: Enum Samples

Question:
How do you handle enums in c#?

Monday 18 April 2011

Dot.Net: What are Enum Flags

Question:
What are Enum Flags?
What are Enums that work like Bit Flags?
How can an enum variable hold more than one (multiple) enum value?

Sunday 17 April 2011

SQL: Page data using Row_Number function

Question:
How to page through data on SqlServer 2005 (or later)?
Page through data on SqlServer 2005 using ROW_NUMBERfunction?

SQL: Find largest table in database

Question:
Who do I find the table with most rows for a given database in sql (SqlServer 2005)

Wednesday 13 April 2011

Dot.Net: Delegates and Actions

Question:
What is the difference between delegates and actions in csharp.

Tuesday 12 April 2011

Dot.Net: Break String to Words using Char.IsLetter(c) method

Question:
How do I split a string into words with csharp?
How can I decide whether a Unicode char is a letter or an alpha-numeric or not?

Monday 11 April 2011

Dot.Net: Singleton Pattern

Question:
What is a singleton?
How to implement a singleton in c#?
How do I make a singleton thread-safe?

Sunday 3 April 2011

Dot.Net: Calling Method Name for Logging

Question:
I want to log the name of the method that called me. How do I do this in c#?
How do I get the name of the caller method at a given execution point in dot.net?

Friday 1 April 2011

Dot.Net: Expose Custom Events

Question:
How do I expose custom events in a c# class?
How do I create custom event, event delegate, event arguments in dot.net?