Re: C# Variable Declaration Spec
Vince P <[email protected]> Sun, 22 Apr 2007 21:07:11 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <008201c7854c$1ad45440$507cfcc0$@net> |
Visual Studio has an object model that will allow you to browse a code file with an object graph that understands classes and methods. - THESE are the times that try men's souls. The summer soldier and the sunshine patriot will, in this crisis, shrink from the service of their country; but he that stands by it now, deserves the love and thanks of man and woman. Tyranny, like hell, is not easily conquered; yet we have this consolation with us, that the harder the conflict, the more glorious the triumph. > -----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 10:54 > 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