Sorting / Reorder properties with attributes
Answered
Hi
It seems that properties with any attributes on it are ignored during the reordering.
Given the following class:
public class BernerBrot
{
public string Zender { get; set; }
public string Abend { get; set; }
}
after a reformat the upper class is correclty formatted as i would expect
public class BernerBrot
{
public string Abend { get; set; }
public string Zender { get; set; }
}
But after i add some annotations to the properties they will be ignored during the format.
public class BernerBrot
{
[XmlElement]
public string Zender { get; set; }
[XmlElement]
public string Abend { get; set; }
}
Any suggestion on this?
Regards,
Lukas
Please sign in to leave a comment.
Hello Lukas
It is expected behavior for class members marked with XmlElementAttribute, according to the following ticket https://youtrack.jetbrains.com/issue/RSRP-212101.
Thanks!
Man I kind of wish this was optional or I could briefly turn it off, just hammered out a bunch of XML serializers and wanted to organize the properties automatically.