c# - How can I access unknown typed object's property names -


I use the function that contains the object type parameter I can type this unknown type object To get the name of the properties of How can I do this?

KR,

Dosage

use

  var properties = obj.GetType (). GetProperties ();    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -