E
esha
I tried several online converters. In many case they do the job, but
sometimes give some mess. I think that all converters I know are old, were
created for VS 2003 and do not understand new stuff from VS 2005. For
instance this block containing Using was not converted by anyone:
Public Shared Function GetSiteSettings() As SiteSettings
Using connection As New
SqlConnection(ConfigurationManager.ConnectionStrings("Personal").ConnectionString)
Using command As New SqlCommand("site_GetSiteSettings", connection)
command.CommandType = CommandType.StoredProcedure
connection.Open()
Dim settings As New SiteSettings(0, "", "", "", "", "", "", "",
0, 0, "", 0, "", "")
Using reader As SqlDataReader = command.ExecuteReader()
Do While (reader.Read())
settings = New SiteSettings(CInt(reader("SiteID")),
CStr(reader("SiteName")), CStr(reader("SiteSlogan")),
CStr(reader("SitePageTitle")), CStr(reader("MetaDescription")),
CStr(reader("MetaKeywords")), CStr(reader("ThemeName")),
CStr(reader("CopyrightCredits")), CInt(reader("EnableRegistration")),
CInt(reader("EnableUserThemes")), CStr(reader("SMTP")),
CInt(reader("RequiresAuthentication")), CStr(reader("AuthUsername")),
CStr(reader("AuthPassword")))
Loop
End Using
Return settings
End Using
End Using
Does anybody know any online converter written for VS 2005?
Thank you
Esha
sometimes give some mess. I think that all converters I know are old, were
created for VS 2003 and do not understand new stuff from VS 2005. For
instance this block containing Using was not converted by anyone:
Public Shared Function GetSiteSettings() As SiteSettings
Using connection As New
SqlConnection(ConfigurationManager.ConnectionStrings("Personal").ConnectionString)
Using command As New SqlCommand("site_GetSiteSettings", connection)
command.CommandType = CommandType.StoredProcedure
connection.Open()
Dim settings As New SiteSettings(0, "", "", "", "", "", "", "",
0, 0, "", 0, "", "")
Using reader As SqlDataReader = command.ExecuteReader()
Do While (reader.Read())
settings = New SiteSettings(CInt(reader("SiteID")),
CStr(reader("SiteName")), CStr(reader("SiteSlogan")),
CStr(reader("SitePageTitle")), CStr(reader("MetaDescription")),
CStr(reader("MetaKeywords")), CStr(reader("ThemeName")),
CStr(reader("CopyrightCredits")), CInt(reader("EnableRegistration")),
CInt(reader("EnableUserThemes")), CStr(reader("SMTP")),
CInt(reader("RequiresAuthentication")), CStr(reader("AuthUsername")),
CStr(reader("AuthPassword")))
Loop
End Using
Return settings
End Using
End Using
Does anybody know any online converter written for VS 2005?
Thank you
Esha