converter C# 1.0 to C#2.0

  • Thread starter Thread starter cody
  • Start date Start date
C

cody

Is there/will there be a converter from C# 1.0 to C#2.0 which will for
example convert classes with only static members to static classes, convert
eventhandlers from "list.SelectedIndexChanged+=new EventHandler(selChange)"
to "list.SelectedIndexChanged+=selChange" or split up gui classes into
partial classes where one contains user code and the other contains the
initializecomponent method and designer variables?
 
cody said:
Is there/will there be a converter from C# 1.0 to C#2.0 which will for
example convert classes with only static members to static classes,
convert eventhandlers from "list.SelectedIndexChanged+=new
EventHandler(selChange)" to "list.SelectedIndexChanged+=selChange" or
split up gui classes into partial classes where one contains user code and
the other contains the initializecomponent method and designer variables?


I've not heard of anything and would suspect not one from MS. There is very
little real need for it as both sets of code will compile. Old code that
compiles and is already tested being converted increases the chance for
errors.

However, I wouldn't be surprised if someone dreams up a utility to do so,
pretty much any C# parser should be adaptable to such a tool.
 
Back
Top