Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Compiler Error CS1013

Invalid number

The compiler detected a malformed number. For more information on integral types, see the Integral Types Table (C# Reference).

The following sample generates CS1013:

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

Community Additions

ADD
Show:
© 2015 Microsoft