var keyword gets the type at the runtime or compile time?
or depends?
See Question&Answers more detail:osvar keyword gets the type at the runtime or compile time?
or depends?
See Question&Answers more detail:osPlain and simple: compile time
var
isn't a type. The actual type is figured out at compile-time.
var
variables are also known as Implicitly Typed Local Variables (C# Programming Guide)