I have below code in c# 4.0.
//Dictionary object with Key as string and Value as List of Component type object
Dictionary<String, List<Component>> dic = new Dictionary<String, List<Component>>();
//Here I …
You can see what I'm trying (but failing) to do with the following code:
protected T GetObject()
{
return new T();
}
Any help would be greatly appreciated.
EDIT:
The context was as follows. I was playing around with a custom controller …
C# 4.0 introduced a new type called 'dynamic'. It all sounds good, but what would a programmer use it for?
Is there a situation where it can save the day?