开发者

<return: > attribute equivalent in Visual Basic.Net

I have 开发者_StackOverflow中文版a C# web method that I need to translate to VB.NET. The method has following attribute:

[return: System.Xml.Serialization.XmlElement("MethodName", Namespace = "http://namespaceurl")]
public CustomClass Method()
....

The method returns custom class as result.

How can I translate this to VB.NET?


I've found the answer, thanks to http://www.developerfusion.com/tools/convert/csharp-to-vb/

Public Function Method() As <System.Xml.Serialization.XmlElement("MethodName", [Namespace] := "http://namespaceurl")> CustomClass
...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜