一小段VB代码转换成C#代码,在线等.

ImportsSystem.WebImportsSystem.Web.ServicesPublicClassMyHandlerImplementsSystem.Web.I... Imports System.Web
Imports System.Web.Services

Public Class MyHandler
Implements System.Web.IHttpHandler

Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest

context.Response.ContentType = "text/plain"
context.Response.Write("Hello World!")

End Sub

ReadOnly Property IsReusable() As Boolean Implements IHttpHandler IHttpHandler.IsReusable
Get
Return False
End Get
End Property

End Class

------------------------------------------------------------------------------------------
Imports System.Web
Imports System.Web.Services

Public Class MyHandler
Implements System.Web.IHttpHandler

Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest

context.Respanse.AddHeader("Content-Type", "application/x-ms-application")

Dim filePath As String = context.Request.FilePath
filePath = context.Request.MapPath("/Applications/SampleClickOnceApp/SampleClickOnceApp_1_0_0_16.application")
context.Respanse.TransmitFile(filePath)
End Sub

ReadOnly Property IsReusable() As Boolean Implements IHttpHandler IHttpHandler.IsReusable
Get
Return False
End Get
End Property

End Class

转换成C#代码..如果能带上注释就最好了...好的加分.谢谢啦!
好吧..我只要有人能帮我翻译
ReadOnly Property IsReusable() As Boolean Implements IHttpHandler IHttpHandler.IsReusable
Get
Return False
End Get
End Property
这一段就可以了...上面的都不用翻译了...没人帮忙么..T_T
展开
 我来答
zhang_junchen
2011-05-27 · TA获得超过3019个赞
知道小有建树答主
回答量:858
采纳率:0%
帮助的人:1081万
展开全部
ReadOnly Property IsReusable() As Boolean Implements IHttpHandler IHttpHandler.IsReusable
Get
Return False
End Get
End Property
这段翻译:
public bool IsReusable
{
get{return false;}
}
完整的翻译我晚上给你补上,能等一下不?
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式