Access property using its name in vb.net
Posted
by Aleksey
on Stack Overflow
See other posts from Stack Overflow
or by Aleksey
Published on 2010-05-31T09:46:49Z
Indexed on
2010/06/01
5:33 UTC
Read the original article
Hit count: 234
vb.net
For example:
Sub Test()
Dim car as new MyCar
car.chassis.wheel.radius = 15
Console.WriteLine(car.chassis.wheel.radius)
End Sub
So question is. Is it possible to access the property using its string name like Something("car.chassis.wheel.radius") = 15?
© Stack Overflow or respective owner