Adam H
Adam H

Reputation: 551

Vb.NET indexed property

I am more familiar with c# than i am with vb.net but i am trying to figure out how to write the vb.net equivalent of:

public float this[int row, int col]
    {
        get
        {
            ...
        }
        set
        {
            ...
        }
    }

Is this possible in vbnet?

If i knew what this type of property was called i may have had better luck on google

Thanks in advance

Upvotes: 2

Views: 1482

Answers (1)

rory.ap
rory.ap

Reputation: 35318

Using http://converter.telerik.com, I get this:

Public Default Property Item(row As Integer, col As Integer) As Single
    Get
        ' ...
    End Get

    Set
        ' ...
    End Set
End Property

Upvotes: 3

Related Questions