Anonymous object properties by string?
Posted
by ropstah
on Stack Overflow
See other posts from Stack Overflow
or by ropstah
Published on 2010-03-12T14:23:27Z
Indexed on
2010/03/12
14:27 UTC
Read the original article
Hit count: 248
How can I instantiate an anonymous object while passing the propertynames and values as string?
new With { .SomeProperty = "Value" }
new With { ".SomeProperty" = "Value" } //something like this? :)
© Stack Overflow or respective owner