Example #1
0
 public void AddChild(Cluster child)
 {
     Utils.ThrowException(child == null ? new ArgumentNullException("child") : null);
     mChildren.Add(child);
 }
Example #2
0
 public void Load(BinarySerializer reader)
 {
     Utils.ThrowException(reader == null ? new ArgumentNullException("reader") : null);
     // the following statements throw serialization-related exceptions
     mParent = reader.ReadObject<Cluster>();
     mChildren = new ArrayList<Cluster>(reader);
     mItems = new Set<int>(reader);
 }