C# Error CS1013 – Invalid number

C# Error

CS1013 – Invalid number

Reason for the Error & Solution

Invalid number

The compiler detected a malformed number. For more information on integral types, see the .

Example

The following sample generates CS1013:

// CS1013.cs  
class Sample  
{  
    static void Main()  
    {  
        int i = 0x;   // CS1013  
    }  
}