private void LoadTypes() { IList <Genetibase.NuGenVisiCalc.Types.TypeDescriptor> types = TypesCache.Types; VisiTypes.TypeDescriptor[] typesToSort = new VisiTypes.TypeDescriptor[types.Count]; types.CopyTo(typesToSort, 0); Array.Sort <VisiTypes.TypeDescriptor>(typesToSort, new VisiTypes.TypeDescriptorComparer()); foreach (VisiTypes.TypeDescriptor descriptor in typesToSort) { AddType(descriptor); } }
private void LoadTypes() { IList<Genetibase.NuGenVisiCalc.Types.TypeDescriptor> types = TypesCache.Types; VisiTypes.TypeDescriptor[] typesToSort = new VisiTypes.TypeDescriptor[types.Count]; types.CopyTo(typesToSort, 0); Array.Sort<VisiTypes.TypeDescriptor>(typesToSort, new VisiTypes.TypeDescriptorComparer()); foreach (VisiTypes.TypeDescriptor descriptor in typesToSort) { AddType(descriptor); } }