且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

VB转C#转换器

更新时间:2023-02-07 18:30:43

我不知道所有包含免费的内容在我之外的转换器我用b $ b使用 - 我自己!基本上对于语法问题,您应该查看:

http://www.harding.edu/USER/fmccown/...omparison.html


哦,退出交叉 - 如果你不是得到答案一个等待一个

而(读 - 一天或两天或更多)然后发布到另一个新闻

组。
>
谢谢,


Seth Rowe


esha写道:
I don''t know of all encompassing "free" converters outside of the one I
use - myself! Basically for syntax issues you should check out:

http://www.harding.edu/USER/fmccown/...omparison.html

Oh and quit crossposting - if you don''t get an answer in one ng wait a
while (read - a day or two or more) and then post to another news
group.

Thanks,

Seth Rowe

esha wrote:

我尝试了几个在线转换器。在许多情况下,他们做的工作,但

有时会给一些混乱。我认为我知道的所有转换器都是旧的,为VS 2003创建了

并且不了解VS 2005中的新内容。对于

实例,此包含Using的块未转换任何人:

公共共享函数GetSiteSettings()As SiteSettings

使用连接为新

SqlConnection(ConfigurationManager.ConnectionStrin gs( " Personal")。ConnectionString)

使用命令As New SqlCommand(" site_GetSiteSettings",connection)

command.CommandType = CommandType.StoredProcedure

connection.Open()

Dim settings As New SiteSettings(0,","","","",""," ","",

0,0,"",0,"","")

使用reader As SqlDataReader = command.ExecuteReader()

Do While(reader.Read())

settings = New SiteSettings(CInt(reader(SiteID)),

CStr(reader(SiteName)),CStr(reader(SiteSlogan)),

CStr(读者(SitePageTitle)),CStr(读者(MetaDescription)),
CStr(读者(MetaKeywords)),CStr(读者(") ; ThemeName")),
CStr(读者(CopyrightCredits)),CInt(读者(EnableRegistration)),
CInt(读者(") EnableUserThemes)),CStr(reader(SMTP)),

CStr(读者(AuthPassword)))

循环

结束使用

返回设置

结束使用

结束使用


有人知道为VS 2005编写的在线转换器吗?


谢谢你

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.ConnectionStrin gs("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


谢谢你Seth

交叉错误有什么问题?例如,我目前的问题与几个新闻组有关,因此其中一个小组的成员中有一个可以回答



对不起,我只是不知道我的影响是什么以及如何通过交叉发布。


Esha

" rowe_newsgroups" < ro ******** @ yahoo.com在留言中写道

新闻:11 ********************** @ i42g2000cwa.googlegr oups.com ...
Thank you Seth
What''s wrong with crossposting? For instance my current question is related
to several newsgroups, so maybe one of the members of one of the groups has
an answer.
Sorry, I just do not know what and how I affect by crosspostings.

Esha
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...

>我不知道所有包含免费的内容在我之外的转换器我用b $ b使用 - 我自己!基本上对于语法问题,您应该查看:

http://www.harding.edu/USER/fmccown/...omparison.html


哦,退出交叉 - 如果你不是得到答案一个等待一个

而(读 - 一天或两天或更多)然后发布到另一个新闻

组。
>
谢谢,


Seth Rowe


esha写道:
>I don''t know of all encompassing "free" converters outside of the one I
use - myself! Basically for syntax issues you should check out:

http://www.harding.edu/USER/fmccown/...omparison.html

Oh and quit crossposting - if you don''t get an answer in one ng wait a
while (read - a day or two or more) and then post to another news
group.

Thanks,

Seth Rowe

esha wrote:

>我尝试了几个在线转换器。在许多情况下,他们做的工作,但有时会给一些混乱。我认为我知道的所有转换器都是旧的,
是为VS 2003创建的,并且不了解VS 2005的新内容。对于
实例,包含Using的块未被任何人转换:使用连接作为新的SqlConnection(ConfigurationManager.ConnectionStri ngs(" Personal))。ConnectionString)
使用命令As New SqlCommand(" site_GetSiteSettings",
连接)
command.CommandType = CommandType.StoredProcedure
connection.Open()
Dim settings As New SiteSettings(0,"", "","","","","",
"",
0,0,"",0," ;","")
使用reader As SqlDataReader = command.ExecuteReader()
Do While(reader.Read())
settings = New SiteSettings(CInt(reader) ; SiteID")),CStr(读者(SiteName)),CStr(读者(&SiteSlogan))),CStr(读者(SitePageTitle)),CStr(读者) (MetaDescription)),CStr(读者(MetaKeywords)),CStr(读者(ThemeName)),
CStr(读者(CopyrightCredits)),CInt (读取器(EnableRegistration)),
CInt(读取器(EnableUserThemes)),CStr(读取器(SMTP)),CInt(读取器(RequiresAuthentication)) ,CStr(读者(AuthUsername)),
CStr(读者(AuthPassword)))
循环
结束使用
返回设置
结束使用
结束使用

有没有人知道为VS 2005编写的在线转换器?

谢谢
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.ConnectionStri ngs("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



" Esha" < aa*@optonline.net写在留言中

新闻:%2 **************** @ TK2MSFTNGP06.phx.gbl ...
"Esha" <aa*@optonline.netwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...

谢谢Seth

交叉插入有什么问题?例如,我目前的问题是与几个新闻组相关的
,所以也许其中一个

组的成员之一有答案。

对不起,我只是不知道通过crosspostings影响了什么以及如何影响。
Thank you Seth
What''s wrong with crossposting? For instance my current question is
related to several newsgroups, so maybe one of the members of one of the
groups has an answer.
Sorry, I just do not know what and how I affect by crosspostings.



我会修改他的建议只是说一个人应该小心地,明智地交叉发布



在你的特定情况下,我会说.csharp和.vb新闻组

似乎都是主题和适当的。但我不清楚

..一般新闻组是什么。


我非常*不同意他的建议等待一天或者说

在一个新闻组中张贴然后发布到另一个新闻组,看看你是否收到

a回复。如果确实存在另一个适合发布的新闻组,那么将该新闻组交叉发布为

就没有问题。相反,如果没有其他新闻组是

交叉发布的合适目标,则没有其他新闻组适合在稍后发布相同的问题




最小的交叉发布可以很好地工作,并且比多发布更有效地使用新闻组。 (即,在不同的时间在不同的新闻组中发布相同的消息)。当交叉发布时,只发送一条

消息,阅读多个新闻组的人需要

只读取一次消息(任何体面的新闻阅读器都会标记该消息as

读取所有新闻组,一旦只读了一个)。


过多的交叉发布可能是一个问题,因为它允许一些话题将

流入不适当的新闻组,增加了非主流新闻组的噪音信号比率。因此,当

交叉发布时,一定要小心。但是没有理由完全克制它。


我个人知道,我发现有一件事是很多问题

实际上只是.NET Framework问题发布在.csharp

新闻组中。事实上,就像一个粗略的猜测,似乎.csharp新闻组中超过一半的问题与语言无关。

本身。


恕我直言,这是对新闻组的不当使用,但它显然是

社区标准,我肯定不会是那个尝试的人改变东西
改变一切。 :)同时,很明显实际的

mpdotnet.framework新闻组(那里的那些问题似乎更多

on-topic给我)获得的流量远远少于此流量,并且可能还有较低的b $ b b读者人数。所以,当我有一个基本上是一个独立于语言的框架问题时,我仍然会交叉发布到这个

新闻组,因为这就是行动似乎在哪里。


无论如何,这是一个很长的说法,我认为你可以放弃

mpdotnet.general,但除此之外我个人看不到任何东西您的

交叉发布错了,我怀疑大多数其他人都这样做。


Pete

I would amend his suggestion to just say that one ought to cross-post
carefully, and judiciously.

In your particular case, I would say that the .csharp and .vb newsgroups
both seem on-topic and appropriate. But it''s not clear to me that the
..general newsgroup was.

I very much *disagree* with his suggestion to wait a day or say after
posting in one newsgroup and then post to a different one to see if you get
a reply there. If there is indeed another newsgroup in which it''s
appropriate to post, there''s no problem cross-posting to that newsgroup as
well. Conversely, if no other newsgroup is an appropriate target for a
cross-post, no other newsgroup is appropriate for posting the same question
at a later time.

Minimal cross-posting can work very well, and is much more efficient use of
the newsgroups than "multi-posting" (that is, posting the same message in
different newsgroups at different times). When cross-posting, just the one
message winds up being sent, and people who read multiple newsgroups need
only read the message once (any decent newsreader will mark the message as
read in all newsgroups, once it''s been read in just one).

Excessive cross-posting can be a problem in that it allows some topics to
bleed into inappropriate newsgroups, increasing the noise-to-signal ratio of
the off-topic newsgroups. So one should certainly be careful when
cross-posting. But there''s no reason to refrain from it altogether.

I know that personally, one thing I''ve found is that a LOT of questions that
are really just .NET Framework questions get posted here in the .csharp
newsgroup. In fact, just as a rough guess, it seems like more than half the
questions in the .csharp newsgroup have nothing to do with the language
itself.

IMHO, this is inappropriate use of the newsgroup, but it''s clearly the
community standard and I''m certainly not going to be the one to try to
change things. :) At the same time, it''s clear that the actual
m.p.dotnet.framework newsgroup (where those sorts of questions seem more
on-topic to me) gets much less traffic than this one, and possibly has lower
readership as well. So when I have what is essentially a
language-independent framework question, I still cross-post to this
newsgroup, because that''s where the action appears to be.

Anyway, that''s a long way of saying that I think you could have left off
m.p.dotnet.general, but otherwise I personally see nothing wrong with your
cross-posting, and I doubt most other people do either.

Pete