我有一个C#web方法,我需要翻译成VB.NET。该方法具有以下属性:
[return: System.Xml.Serialization.XmlElement("MethodName", Namespace = "http://namespaceurl")]
public CustomClass Method()
....
该方法返回自定义类作为结果。
如何将其转换为VB.NET?
答案 0 :(得分:1)
由于http://www.developerfusion.com/tools/convert/csharp-to-vb/
,我找到了答案Public Function Method() As <System.Xml.Serialization.XmlElement("MethodName", [Namespace] := "http://namespaceurl")> CustomClass
...