Re: C# Variable Declaration Spec
Eric Gunnerson <[email protected]> Mon, 23 Apr 2007 10:30:25 -0700
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <C272BBEC2F957B45A7EB247201AD12B80CF26FB6CE@NA-EXMSG-C106.redmond.corp.microsoft.com> |
Brady, The C# language spec appendix C section 2.7 has the definition for field-declaration, what is what I think you want. Eric -----Original Message----- From: Discussion relating to the specifics of the C# and Managed C++ languages [mailto:[email protected]] On Behalf Of Brady Kelly Sent: Sunday, April 22, 2007 8:54 AM To: [email protected] Subject: [DOTNET-CX] C# Variable Declaration Spec I'm trying to build an automatic refactor macro, to allow me to highlight a block of field declarations and refactor them as properties. I'm doing it as much as a time saver as an exercise, so please don't all tell me about a tool that does it. My first step is to extract the variable names from the text block, and I figure the field name is "The last _word_ before a semi-colon or equals sign. Am I correct here? Can anyone give me the BNF for a field declaration? =================================== This list is hosted by DevelopMentor? http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com