I saw a code like this:
private readonly object[] m_Values = { (int)0, (int)0 };
What\'s the idea to cast 0 to int? Isn\'t it int by \'defa
C# defaults to Int32 when you declare an integer literal without supplying a type hint (as long as the literal fits into an Int32, otherwise it will go to Int64).
From here:
In C#, literal values receive a type from the compiler. You can specify how a numeric literal should be typed by appending a letter to the end of the number. For example, to specify that the value 4.56 should be treated as a float, append an "f" or "F" after the number