buunguyen / fasterflect

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

MissingMember exception, on runtime. #18

Open Uptixs opened 3 years ago

Uptixs commented 3 years ago

I have a class, with a instance field of type IList, I set that property from inside the constructor using the "public static IList Properties(this Type type, params string[] names);" method from PropertyExtensions.cs in fasterflect. When I create some instances of my class, and put them into a List, I then get a missing member exception from fasterflect when I call fasterflects deepclone extension method on the list. For some reason, if I populate a HashSet with the same instances of my class, and deepclone the hashset I do not get the exception.