public void AddChild(Cluster child) { Utils.ThrowException(child == null ? new ArgumentNullException("child") : null); mChildren.Add(child); }
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); }