private void SetUpSortMethodLists() { this.m_SortingObjects = new Dictionary <string, BaseHierarchySort>(); foreach (Assembly loadedAssembly in EditorAssemblies.loadedAssemblies) { foreach (BaseHierarchySort implementor in AssemblyHelper.FindImplementors <BaseHierarchySort>(loadedAssembly)) { if (implementor.GetType() != typeof(AlphabeticalSort) || this.m_AllowAlphaNumericalSort) { this.m_SortingObjects.Add(this.GetNameForType(implementor.GetType()), implementor); } } } this.currentSortMethod = this.m_CurrentSortMethod; }
private void SetUpSortMethodLists() { this.m_SortingObjects = new Dictionary <string, BaseHierarchySort>(); Assembly[] loadedAssemblies = EditorAssemblies.loadedAssemblies; for (int i = 0; i < loadedAssemblies.Length; i++) { Assembly assembly = loadedAssemblies[i]; foreach (BaseHierarchySort current in AssemblyHelper.FindImplementors <BaseHierarchySort>(assembly)) { if (current.GetType() != typeof(AlphabeticalSort) || this.m_AllowAlphaNumericalSort) { string nameForType = this.GetNameForType(current.GetType()); this.m_SortingObjects.Add(nameForType, current); } } } this.currentSortMethod = this.m_CurrentSortMethod; }