buunguyen / fasterflect

.NET Reflection Made Fast and Simple ⛺
https://www.nuget.org/packages/fasterflect/
Apache License 2.0
285 stars 57 forks source link

Accessing nested fields / properties #19

Open slimshader opened 3 years ago

slimshader commented 3 years ago

Hi,

based on the docs I don't think there is direct support for this case so: what would be the best way to to approach the problem of setting or getting the value of a nested field or property, for example:

obj.SetValue("Level1.Leve2.Level3", value);

where each Level# accessor can be either a Field or a Property