[英]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: 我对C#的了解比对vb.net的了解要多,但我试图弄清楚如何编写与以下内容相同的vb.net:
public float this[int row, int col]
{
get
{
...
}
set
{
...
}
}
Is this possible in vbnet? 在vbnet中这可能吗?
If i knew what this type of property was called i may have had better luck on google 如果我知道这种类型的财产叫什么,那我在Google上可能会更好
Thanks in advance 提前致谢
Using http://converter.telerik.com , I get this: 使用http://converter.telerik.com ,我得到了:
Public Default Property Item(row As Integer, col As Integer) As Single
Get
' ...
End Get
Set
' ...
End Set
End Property
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.