public int CompareTo(object obj) { CellsBlock block = obj as CellsBlock; if (block == null) { return(-1); } if (Length == block.Length) { if (IsOpened) { return(-1); } } return(Length - block.Length); }
public CellsBlock(CellsBlock origin) { Length = origin.Length; StartPosition = origin.StartPosition; IsOpened = origin.IsOpened; }