NBMsgPack002: Avoid [Key]
on non-serialized members
KeyAttribute should not be applied to members that are not serialized.
Resolution
There are two fixes for this condition:
- Remove the attribute.
- Serialize the member by applying the PropertyShapeAttribute, without setting Ignore to
true
.