Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I read a project file and see this declaration. not sure what does @null exactly mean:

public enum ShapeType
   {
       square,
       pyramid,
       staircaseLeft,
       staircaseRight,
       lshapeLeft,
       lshapeRight,
       line,
       @null //<== what does this mean?
   }


What I have tried:

I understand "@" means literal, but does this @null mean?
that mean a literal item?

try to get confirmation from gurus here.
Posted
Updated 17-Jun-22 9:47am
Comments
PIEBALDconsult 17-Jun-22 15:31pm    
Allows the use of a reserved word as an identifier?
Southmountain 17-Jun-22 17:40pm    
thank you!

1 solution

As PIEBALDconsult already mentioned you can use @ as a prefix for reserved words.
See: C# Keywords | Microsoft Docs[^]
 
Share this answer
 
Comments
Southmountain 17-Jun-22 17:40pm    
thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900