Design Pattern Riddle #1

q. You use me quite often as you code with care;
I’m accessible to you just about everywhere.
I’m a solitary class, only one of me is made;
When you need me the most, I’ll come to your aid.

a. Singleton

~/riddle by me

Read More »

Quality Grin

q. If you are looking for quality,
I am a good place to begin
You can find me in VS 2008;
All the green will make you grin.

a. MSTest

~/riddle by me

Read More »

Concise Description

q. I don’t require you to repeat yourself,
But you might need to describe something twice.
I am most useful when it comes to LINQ;
You will find using me to be very concise.

a. Implicitly Typed Local Variables

~/riddle by me

Read More »

Compiler Inferred

q. You need to know the Object Initializer,
if you want to play with me.
I am inferred and created by the compiler;
before you know it I will flee.

Intellisense can pick me up and see me;
I am only readable inside.
I am useful when using LINQ;
where will you use me? You decide.

a. Anonymous Types

~/riddle by me

Read More »

Complex Line

q. I can setup your complex object;
I can do it while you assign.
I am not an overloaded constructor;
You can write me in one line.

a. Object Initializer

~/riddle by me

Read More »