> >public enum TagType >{ > MIXED = 0, > ISO6BG1 = 1, > ISO6BG2 = 2, > ISO6C = 3, > ICODE119 = 4, > UCODE119 = 5, > EPCC1G2 = 6 >} > >>
>// Needs to be ultimately this. >this.reader.Attributes.SetTAGTYPE("EPCC1G2"); >// Would simply like to do this >this.reader.Atrributes.SetTAGTYPE(TagType.EPCC1G2) but this is an int of 6 > >//Would this do it? Ok, it doesn't but what does? >// Retrieve the TagType from the settings file as a TagType enumeration >string tagType = Enum.GetName(TagType, RfidSettings.Instance.TagType); >this.reader.Attributes.SetTAGTYPE(tagType); >>
this.reader.Attributes.SetTAGTYPE(Enum.GetName(typeof(TagType), RfidSettings.Instance.TagType));