implicitly typed variables must be initialized c# error?
These are called explicitly typed variables. C# 3.0 introduced var keyword to declare method level variables without specifying a data type explicitly. ... Implicitly-typed variables must be initialized at the time of declaration; otherwise C# compiler would give an error: Implicitly-typed variables must be initialized.