类型的覆盖设置器/字母

时间:2018-11-06 06:03:20

标签: vb.net

是否有任何方法可以覆盖类型的默认setter / getter?我的意思是有什么办法可以做到:

Class Foo
 public Property Value as string 
End class 

...
dim Foo as new Foo
' instead of
Foo.Value = "SomeString"
' do this
Foo = "SomeString" !!!

有可能吗?

0 个答案:

没有答案
相关问题