Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Translate this code from C# to VB.NET

Tags:

c#

vb.net

How do you convert the following C# code to VB.NET?

private static readonly ICollection<string>
    _skipHeaders = new[]
        {
            "Connection",
            "Keep-Alive",
            "Accept",
            "Host",
            "User-Agent",
            "Content-Length",
            "Content-Type",
            "Accept-Encoding",
            "Authorization",
            "Referer",
            ProxyMethodHeader,
            ProxyAuthorizationHeader,
            ProxyAcceptHeader,
            ProxyAgentHeader,
            ProxyQueryHeader
        };
like image 415
Congero Avatar asked Jan 22 '23 09:01

Congero


1 Answers

The following will work for vb9

Private Shared _skipHeaders as ICollection(Of String) = New String() { _
  "Connection", _
  "Keep-Alive", _ 
  ...  }
like image 54
JaredPar Avatar answered Jan 24 '23 22:01

JaredPar