Cool way to extract PropertyInfo


var VarPropertyEnum = from ReflectionEntity in Source.GetType().GetProperties()
 select new { ReflectionEntity.Name, PropertyValue = ReflectionEntity.GetValue(Source, null).ToString(), PropertyDataType = ReflectionEntity.PropertyType };

However this only works if you have a simple data type.  :(

Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type