public static void Write(this BinaryWriter bw, TagType tagtype) { byte[] buffer = Encoding.UTF8.GetBytes(tagtype.ToString()); Array.Reverse(buffer, 0, 4); bw.Write(buffer, 0, 4); }
public Report(string tagname, TagType type) { Tagname = String.Empty; Type = TagType.Null; Sectors = new List<Sector>(); }