Quantcast
Channel: How to get a PropertyInfo without property name?
Viewing all articles
Browse latest Browse all 3

How to get a PropertyInfo without property name?

$
0
0

Not at the moment; you have to pass a string in.

 

I believe the C# team are considering a proposal for the infoof operator so you'd be able to write something like:

 

PropertyInfo prop = infoof(Person, Age); // note: not real syntax

 

But it doesn;t exist yet.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>