private static int CompareDepth(IDepthSortable d1, IDepthSortable d2) { if (d1.Depth > d2.Depth) { return(1); } if (d1.Depth < d2.Depth) { return(-1); } return(0); }
public void UnRegister(IDepthSortable depthSortable) { _depthSortables.Remove(depthSortable); }
public void Register(IDepthSortable depthSortable) { _depthSortables.Add(depthSortable); }