By automatic conversion of code written in VB.NET to C# I have such situation in function declaration of VB.NET:
Private Function dataArchiver(ByVal toPlace As String,
Optional ByVal aExtension As String = ".7z",
Optional ByRef createdName As String = "") As Integer
Tool for automatic conversion does this in C#:
private int dataArchiver(string toPlace,
string aExtension = ".7z",
ref string createdName = "")
And this of course don't work. Keyword "ref" before last argument is underlined with red. Why is that so? Because string createdName may be (and don't have to be) generated in function and in that case have to be passed out from function. It is important that this code can work with NET framework 3.5.
Any idea to get this working in C# without much reconcepting of VB.NET program?