I want to move a vb.net app to c#. The vb.net app has thousands of byref parameters that should be byval. Does anybody know a way to automate checking whether each parameter passing approach can be safely changed?
Asked
Active
Viewed 128 times
2
-
You could search for `refVariable =`. Then you should not make it `ByVal`. But you have to do it manually(use VS function _find all references_). – Tim Schmelter Feb 02 '13 at 00:11
-
Sounds like an answer, tim! – Eamon Nerbonne Feb 02 '13 at 00:23
-
yes, you might use the `find and replace` feature of Visual Studio `:)` – spajce Feb 02 '13 at 07:44
1 Answers
-2
maybe the following tool http://www.developerfusion.com/tools/convert/vb-to-csharp/ can help you.

Giorgos Manoltzas
- 1,710
- 5
- 24
- 34
-
-1 how does it help to determine whether [`ref`](http://msdn.microsoft.com/en-us/library/14akc2c7.aspx) is required or not? – Tim Schmelter Feb 02 '13 at 01:49
-
Thanks for getting back guys...the developerfusion tool is great but I'm not allowed to send code outside the company. I think I'll have to do what I can with regex and then just start in on debugging. Tim's idea of looking for refVar= is probably worth a crack.] – daniel Feb 03 '13 at 21:03