C++/C# bad practices: learn how to make a good code by bad example

Xenko

An error in the formatting string
V3025 Incorrect format. A different number of format items is expected while calling ‘Format’ function. Expected: 4. Present: 3. SiliconStudio.Core.Mathematics Color3.cs 765

Format-string parameters are normally indexed starting with {0}, but here indexing starts with {1}. In this code, the format string is expecting 4 arguments but gets only 3, which issue will result in a FormatException. To fix this error, indices in the format string must be numbered correctly.