Esempio n. 1
0
        public void Read(BinaryReader r)
        {
            if (r == null)
            {
                throw new ArgumentNullException("r");
            }
            _groupSet = new GroupSet();

            // Group Count
            int g = r.ReadInt32();

            // For Each Group
            for (int j = 0; j < g; j++)
            {
                var l = new Group();

                // List Size (or Values Count)
                int s = r.ReadInt32();

                // Read values and put them in the list
                for (int i = 0; i < s; i++)
                {
                    l.Add(r.ReadInt32());
                }

                // Add list to dictionary
                _groupSet.Add(l);
            }
        }
Esempio n. 2
0
 public void Init()
 {
     _groupSet = new GroupSet();
 }