public void WriteTo(int version, out string content) { Interface9 writer = Class794.smethod_5((Interface6)this, (Interface7)this, version); this.ilist_1.Clear(); writer.imethod_4(version); this.class987_0.Product = "CadLib"; this.class987_0.NumberOfRecords = this.ilist_0.Count; this.class987_0.EntityCount = 0; foreach (Class80 class80 in (IEnumerable <Class80>) this.ilist_0) { if (class80 is Class187) { ++this.class987_0.EntityCount; } if (class80 is Class98) { ++this.class987_0.EntityCount; } } writer.imethod_16(this.class987_0); this.WriteTo(writer); content = writer.SAT; }