enum prob

Results 1 to 2 of 2

Thread: enum prob

  1. #1
    Join Date
    Dec 1969

    Default enum prob

    Hi<BR>When I declare a enum in C# as <BR><BR>public enum FoldType {2Fold,3Fold};<BR><BR>I get an error which says &#039;identifier expected&#039; near 2Fold,<BR>if I remove 2 and 3 and just have Fold then it works fine.<BR>Whats the bug here, i am new to enumerations.Anyone has a idea.<BR>Thanks<BR>

  2. #2

    Default RE: enum prob

    You could check the C# spec, but I don&#039;t think that you can start the name with a number (like a variable name).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts