✅ Why is this giving an error? - C#