开发者

<return: > attribute equivalent in Visual Basic.Net

开发者 https://www.devze.com 2023-01-07 15:50 出处:网络
I have 开发者_StackOverflow中文版a C# web method that I need to translate to VB.NET. The method has following attribute:

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

精彩评论

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