Implicitly Typed vs Anonymous Type
.net, anonymous-types, c#, implicit
Solution
There is a huge difference:
Implicitly typed (local) variables, are variables which type is not explicitly given:
var i = new StringBuilder();
Now, `i` is implicitly of type `StringBuilder` - a named type.
Anonymous types on the other side do not have a name, they are anonymous:
var x = new { Foo = "Bar" };
x is now of an anonymous type, with a read-only property `Foo`.
Problem
Is it same or any difference between Implicitly Typed and Anonymous Type.If it is different so What is the main difference between Implicitly Typed and Anonymous Type?