-5

How do I convert this c# code to VB code?

public class BasePage : Page
{
    protected override void InitializeCulture()
    {
        if (Session["Lang"] != null)
        {
            string selectlang = Session["Lang"].ToString();
            Culture = selectlang;
            UICulture = selectlang;
        }
        base.InitializeCulture();
    }
}
Martin G
  • 17,357
  • 9
  • 82
  • 98
Seng Leang
  • 11
  • 1

1 Answers1

-1
Public Class BasePage
    Inherits Page
    Protected Overrides Sub InitializeCulture()
        If Session("Lang") IsNot Nothing Then
            Dim selectlang As String = Session("Lang").ToString()
            Culture = selectlang
            UICulture = selectlang
        End If
        MyBase.InitializeCulture()
    End Sub
End Class
Rakin
  • 1,271
  • 14
  • 30