Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Obtaining a list of the keywords for C#

Tags:

c#

keyword

Is there a programmatic way to determine the list of keywords for a particular version of C#?

What I'm after is a list so I can do syntax coloring. I can read a hard coded list but if I can get them programatically then I don't need to worry about updating hte list for each new release,etc.

like image 893
chollida Avatar asked Dec 20 '25 00:12

chollida


1 Answers

No, not as far as I know. I needed this recently - I just copied from the C# spec documents.

Also; note that some are contextual keywords ;-p

like image 77
Marc Gravell Avatar answered Dec 21 '25 15:12

Marc Gravell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!