public static void Write(BinaryWriter o, List <ConfHero> d) { o.Write(d != null); if (d == null) { return; } int size = d.Count; o.Write(size); for (int i = 0; i < size; ++i) { ConfHero_Serializer.Write(o, d[i]); } }
public static void Write(BinaryWriter o, Dictionary <string, ConfHero> d) { o.Write(d != null); if (d == null) { return; } int size = d.Count; o.Write(size); foreach (var elem in d) { String_Serializer.Write(o, elem.Key); ConfHero_Serializer.Write(o, elem.Value); } }