Given enum
as an example:
public enum IcmsCst
{
[XmlEnum("00")] Cst00,
[XmlEnum("10")] Cst10,
[XmlEnum("20")] Cst20,
...
}
Is there a way to annotate so that I could specify that a particular type of ICMS could only accept a certain type of% with% of that% with%?
As for example:
public class Imposto
{
[XmlEnum(AcceptOnly = [IcmsCst.Cst00])] // como exemplo do que busco para a limitação
public ICMS Icms00 { get; set; }
}
So,