Json TypeInfoResolver GetCustomAttribute returning wrong result
After checking with debugger,
property.PropertyType.GetCustomAttribute<IpcExposeAttribute>() is null
is always true (which results into empty serialization)
I've tried doing a property.PropertyType.GetCustomAttributes()
and it returns 6 attributes (SerializableAttribute, NullableContextAttribute, NullableAttribute, DefaultMemberAttribute, NonVersionableAttribute, TypeForwardedFromAttribute), but no signs of my custom attribute.
Even passing true
(although inheritance shouldn't matter in this case) in the GetCustomAttributes, results to no change whatsoever.0 Replies