【发布时间】:2010-01-10 22:55:13
【问题描述】:
在 VB.NET 中,无论是反射还是后期绑定,什么应该更合适或建议使用什么:
'Type can be various objects that have a common property for sure.'
Dim type = sender.GetType()
Dim prop = type.GetProperty("Text", 20)
Dim value = property.GetValue(sender, Nothing)
对比:
Dim value = sender.Text
【问题讨论】:
标签: vb.net reflection late-binding