I am converting C # code to VB.Net, and C code has this above function:
[return: System.Xml.Serialization.XmlElementAttribute("Name", IsNullable=true)]
Given this C # code:
public [return:XmlElement("Name", IsNullable=true)] string Foo() { return ""; }
will translate something like:
Public Function Foo() As <XmlElement("Name", IsNullable := True)> String Return "" End Function
In VB.Net, just put it before the type in the As clause
Public Function Example() As <XmlElementAttribute("Name", IsNullable:=true)> As SomeType ... End FUnction
VB, , , .
VB.NET, "Return"?
http://msdn.microsoft.com/en-us/library/2e34641s.aspx
, , . , .
Source: https://habr.com/ru/post/1719102/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1719097/how-to-redirect-role-based-security-exceptions-to-custom-page-aspnet&usg=ALkJrhgINRI1UuJHlcfH9YUT2oZt_e9gdwCan I have a negative tinyint in SQLite? - typesEclipse plugin: NoClassDefFoundError for org / eclipse / jdt / ui / JavaUI - javaCan subdomains be controlled programmatically in an ASP.Net application? - asp.nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1719101/flex-passing-parameters-to-custom-components&usg=ALkJrhjUsbH6XGo-BE4vfBmICt3UYgVO3wErasure type workaround in Java - javaProbable excessive use of java interfaces in my implementation of Ms. Pac-Man - javaCString communication error - c ++Connect UniqueConstraint with function - pythonHow to use the built-in Grizzly server for Mule, as well as Jersey - javaAll Articles