如何将此c#代码转换为VB代码?
public class BasePage : Page
{
protected override void InitializeCulture()
{
if (Session["Lang"] != null)
{
string selectlang = Session["Lang"].ToString();
Culture = selectlang;
UICulture = selectlang;
}
base.InitializeCulture();
}
}
答案 0 :(得分:-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