Imagine this.
Dictionary<Dictionary<String, String>, String> items = new Dictionary<Dictionary<String, String>, String>();
var is useful for such things.
var items = new Dictionary<Dictionary<String, String>, String>();
Much easier. The var point is the same as auto in C ++ 11, the compiler knows the type, so why should we repeat ourselves so much. I rarely use var rarely, but only for long declarations. It is just syntactic sugar.
David Anderson - DCOM
source share