Get value using the name of property
C#
3
Posts
2
Posters
0
Views
1
Watching
-
Hi all, How should I mimic the ComboBox DisplayMember property which gets a string and can use the property whose name is indicated by that string. Thanks in advance
-
When you know the name of the property, you can invoke that using Reflection (System.Reflection) Type.GetType("MyType").GetProperty("MyProperty").GetValue