tags:

views:

103

answers:

3

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.

+3  A: 

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

Marc Gravell
+2  A: 

No, there's no built in api to fetch the C# keywords.

nos
+1  A: 

There isn't a programmatic way but you can always use this page as there are different links to each version of the framework and you can extrapolate the language version from that.

Andrew Hare