Skip to content

FormerlySerializedAs Attribute is marked as redundant when applied to properties via field targetting. #2285

@MHDante

Description

@MHDante

image

This happens when using the field keyword:

[field: FormerlySerializedAs("Cheem")]
public int Cheem { get; set; }

This is wrong, as the serialized name of properties is <PropertyName>k__BackingField.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions