private int AddNewRenderer (Type classFilter) { var elem = rendererList.SingleOrDefault (hierarchyRenderer => hierarchyRenderer.filterString == classFilter.FullName); if (elem == null) { elem = new GroupedByHierarchyRenderer (classFilter); rendererList.Add (elem); } return rendererList.IndexOf (elem); }
private int AddNewRenderer(Type classFilter) { var elem = rendererList.SingleOrDefault(hierarchyRenderer => hierarchyRenderer.filterString == classFilter.FullName); if (elem == null) { elem = new GroupedByHierarchyRenderer(classFilter); rendererList.Add(elem); } return(rendererList.IndexOf(elem)); }