J
jamie
Yello,
I am having a hard time converting
from vb to cs. I think that vb as
doing a little more behind the scenes,
than I relized...
The prob code:
vb---------------------------------
someMethod(nothing, 0,....,nothing)
-----------------------------------
cs---------------------------------
someMethod(null,0,...., null); //this does not work!!!
-----------------------------------
Seams easy enough, right?... but replacing
that "nothing" with "null" doesn't work due to
the argument being of a reference type.
Does that mean I would have to define, and
initiaize the arguments? I know if I redefine
the function in cs to use an "out" instead of
a "ref" var, that I would not have to initialize
the referenced variable.... but doesnt that mean
I would still have to define a variable?
Any suggestions as to the fastest and cleanest
way of getting the proper syntext for cs would be
greatly appreciated.
(example??)
thanks jamie
..
I am having a hard time converting
from vb to cs. I think that vb as
doing a little more behind the scenes,
than I relized...
The prob code:
vb---------------------------------
someMethod(nothing, 0,....,nothing)
-----------------------------------
cs---------------------------------
someMethod(null,0,...., null); //this does not work!!!
-----------------------------------
Seams easy enough, right?... but replacing
that "nothing" with "null" doesn't work due to
the argument being of a reference type.
Does that mean I would have to define, and
initiaize the arguments? I know if I redefine
the function in cs to use an "out" instead of
a "ref" var, that I would not have to initialize
the referenced variable.... but doesnt that mean
I would still have to define a variable?
Any suggestions as to the fastest and cleanest
way of getting the proper syntext for cs would be
greatly appreciated.
(example??)
thanks jamie
..