Type Inference

Type Inference

Type inference allows a variable to infer the type being assigned to it. No more should a variable be strongly typed. C# offers the varkeyword for type inference. var myInt = 10;…