public static System.Collections.Generic.Dictionary <string, Config.ConfAction> Read(IBinaryReader o, System.Collections.Generic.Dictionary <string, Config.ConfAction> d)
        {
            if (o.ReadBoolean() == false)
            {
                return(null);
            }

            int size = o.ReadInt32();

            if (d == null)
            {
                d = new System.Collections.Generic.Dictionary <string, Config.ConfAction>(size);
            }
            else
            {
                d.Clear();
            }
            for (int i = 0; i < size; ++i)
            {
                string            key   = StringSerializer.Read(o, default(string) as string);
                Config.ConfAction value = ConfActionSerializer.Read(o, default(Config.ConfAction) as Config.ConfAction);
                d.Add(key, value);
            }
            return(d);
        }
        public static void Write(IBinaryWriter o, System.Collections.Generic.Dictionary <string, Config.ConfAction> d)
        {
            o.Write(d != null);
            if (d == null)
            {
                return;
            }

            int size = d.Count;

            o.Write(size);
            foreach (var elem in d)
            {
                StringSerializer.Write(o, elem.Key);
                ConfActionSerializer.Write(o, elem.Value);
            }
        }