Visual Basic.Net中的<return:>等效属性</return:>

时间:2010-07-15 11:52:28

标签: vb.net web-services attributes

我有一个C#web方法,我需要翻译成VB.NET。该方法具有以下属性:

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

该方法返回自定义类作为结果。

如何将其转换为VB.NET?

1 个答案:

答案 0 :(得分:1)

由于http://www.developerfusion.com/tools/convert/csharp-to-vb/

,我找到了答案
Public Function Method() As <System.Xml.Serialization.XmlElement("MethodName", [Namespace] := "http://namespaceurl")> CustomClass
...