M
mp
Trying reflector for first time to convert a buildable vbnet class to c#
this started as a vb6.bas file (utility functions used in most of my
projects)
i converted it to vb.net by addressing all the errors and warnings when
first converting vb6 project containing this file to dotnet project
now i used reflector to open the .vb file and got the message it's not an
..exe
so i opened the whole vb.net project and
select the .vb file
converted to c# with the language dropdown
copied text in disassembler pane
went to c# project
menu Project|add class| code file
pasted the copied c# code
near the top is
{
// Fields
private static int $STATIC$GetNextClassDebugID$008$lClassDebugID;
this creates error "Unexpected character '$'
maybe code file isn't the right type of file to choose for a former .bas
module?
i tried also using a class file instead of code file and get the same
errors
how does one convert a vb.net file to a c# file with reflector?
ps i also exported the whole project to c# and still have the same errors
some of these seem occur where in vb6 i had a static long variable in a
function
i'll have to find how to declare a static var in c#...probably in the help
files
thanks
mark
this started as a vb6.bas file (utility functions used in most of my
projects)
i converted it to vb.net by addressing all the errors and warnings when
first converting vb6 project containing this file to dotnet project
now i used reflector to open the .vb file and got the message it's not an
..exe
so i opened the whole vb.net project and
select the .vb file
converted to c# with the language dropdown
copied text in disassembler pane
went to c# project
menu Project|add class| code file
pasted the copied c# code
near the top is
{
// Fields
private static int $STATIC$GetNextClassDebugID$008$lClassDebugID;
this creates error "Unexpected character '$'
maybe code file isn't the right type of file to choose for a former .bas
module?
i tried also using a class file instead of code file and get the same
errors
how does one convert a vb.net file to a c# file with reflector?
ps i also exported the whole project to c# and still have the same errors
some of these seem occur where in vb6 i had a static long variable in a
function
i'll have to find how to declare a static var in c#...probably in the help
files
thanks
mark