예제 #1
0
 public void AddChild(Cluster child)
 {
     Utils.ThrowException(child == null ? new ArgumentNullException("child") : null);
     mChildren.Add(child);
 }
예제 #2
0
파일: Cluster.cs 프로젝트: viidea/latino
 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);
 }