Member_2_7967119
asked on
Help with Converting C# to vb
I have used couple of free ware to convert C# to Vb but the converted file is not compiling.
Could I get some help with have the C# file (attached) converted to Vb and also it should be working.
I am using ASP.net and VB environment.
TestDataC.txt
Could I get some help with have the C# file (attached) converted to Vb and also it should be working.
I am using ASP.net and VB environment.
TestDataC.txt
ASKER
the following statement
var sslFailureCallback = new RemoteCertificateValidatio nCallback( delegate { return true; });
ServicePointManager.Server Certificat eValidatio nCallback += sslFailureCallback;
is being converted to
Dim sslFailureCallback As var = New RemoteCertificateValidatio nCallback( delegate, {, true)
UnknownUnknownServicePoint Manager.Se rverCertif icateValid ationCallb ack = (ServicePointManager.Serve rCertifica teValidati onCallback + sslFailureCallback)
var sslFailureCallback = new RemoteCertificateValidatio
ServicePointManager.Server
is being converted to
Dim sslFailureCallback As var = New RemoteCertificateValidatio
UnknownUnknownServicePoint
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The line
May be something like below?
Dim sslFailureCallback As var = New RemoteCertificateValidationCallback(delegate, {, true)
is definitely wrong: some strange commas, unclosed braces...May be something like below?
Dim sslFailureCallback = New RemoteCertificateValidationCallback(Function() True)
It was late! :D
ASKER
Let me try and revert back
This question has been inactive for 14 days. Two people gave the same solution. Points are awarded to the first given solution.
Letting us know the errors you get would help.