fasterflect icon indicating copy to clipboard operation
fasterflect copied to clipboard

MissingMember exception, on runtime.

Open Uptixs opened this issue 4 years ago • 0 comments

I have a class, with a instance field of type IList<PropertyInfo>, I set that property from inside the constructor using the "public static IList<PropertyInfo> 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<T>, 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<T> with the same instances of my class, and deepclone the hashset I do not get the exception.

Uptixs avatar Feb 12 '21 19:02 Uptixs