Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
		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);
			}
		}