C# 3.0 - 暗黙に型付けられた型(var)
型推論によってコンパイル時に決定される型
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Program { class Program { static void Main(string[] args) { var n = 3; int value = n; var ar = new List<int>(); ar.Add(3); } } }
コンパイル時どころか、コードを打ってる間にもう型が決定されている