C#C
C#4mo ago
alex

Using 'var' instead of explicitly stating the type

JetBrains Rider suggests I change CircleData[] circles = CircleRegistry.ToDataArray(); to var circles = CircleRegistry.ToDataArray(); with the warning:
Use 'var' (elsewhere)

I understand this is just coding style, but is it considered standard practice to use var whenever possible in C#? As someone with a bit of C++ experience this feels weird to me
Was this page helpful?