Server.Gumps.PropertiesGump.BuildList C# (CSharp) Méthode

BuildList() private méthode

private BuildList ( ) : ArrayList
Résultat System.Collections.ArrayList
		private ArrayList BuildList()
		{
			ArrayList list = new ArrayList();

			if ( m_Type == null )
				return list;

			PropertyInfo[] props = m_Type.GetProperties( BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public );

			ArrayList groups = GetGroups( m_Type, props );

			for ( int i = 0; i < groups.Count; ++i )
			{
				DictionaryEntry de = (DictionaryEntry)groups[i];
				ArrayList groupList = (ArrayList)de.Value;

				if ( !HasAttribute( (Type)de.Key, typeofNoSort, false ) )
					groupList.Sort( PropertySorter.Instance );

				if ( i != 0 )
					list.Add( null );

				list.Add( de.Key );
				list.AddRange( groupList );
			}

			return list;
		}