why doesnt the if command work in csharp

Code Example - why doesnt the if command work in csharp

                
                        int x = 10;
if x == 10 
console.writeline("hej");