Convert from C# to VB

  • Thread starter Thread starter João Santa Bárbara
  • Start date Start date
J

João Santa Bárbara

how can i convert this

public NumPointsPropertyDescriptor(PointsPropertyTab owner) :
base("NumPoints", new Attribute[]{CategoryAttribute.Data,
RefreshPropertiesAttribute.All})
{
this.owner = owner;
}

to VB.NET

thks
JSB
 
João Santa Bárbara said:
how can i convert this

public NumPointsPropertyDescriptor(PointsPropertyTab owner) :
base("NumPoints", new Attribute[]{CategoryAttribute.Data,
RefreshPropertiesAttribute.All})
{
this.owner = owner;
}

to VB.NET

The is a call to a superclass constructor. In VB use MyBase.New

public sub new(owner as PointsPropertyTab)
MyBase.New("NumPoints", new Attribute()
{CategoryAttribute.Data,RefreshPropertiesAttribure.All})
me.owner = owner
end sub


David
 
* "João Santa Bárbara said:
public NumPointsPropertyDescriptor(PointsPropertyTab owner) :
base("NumPoints", new Attribute[]{CategoryAttribute.Data,
RefreshPropertiesAttribute.All})
{
this.owner = owner;
}

to VB.NET

In addition to the other reply, take a look at the converters available
for converting C# code to VB.NET:

C# -> VB.NET Converters:

<URL:http://www.aspalliance.com/aldotnet/examples/translate.aspx>
<URL:http://www.kamalpatel.net/ConvertCSharp2VB.aspx>
<URL:http://csharpconverter.claritycon.com/>
<URL:http://www.ragingsmurf.com/vbcsharpconverter.aspx>
<URL:http://www.gotdotnet.com/Community/...mpleGuid=c622348b-18a9-47d6-8687-979975d5957d>

<URL:http://www.remotesoft.com/>
-> "Octopus"
 
Back
Top