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

GetCustomEnumNames() private static méthode

private static GetCustomEnumNames ( Type type ) : string[]
type System.Type
Résultat string[]
		private static string[] GetCustomEnumNames( Type type )
		{
			object[] attrs = type.GetCustomAttributes( typeofCustomEnum, false );

			if ( attrs.Length == 0 )
				return new string[0];

			CustomEnumAttribute ce = attrs[0] as CustomEnumAttribute;

			if ( ce == null )
				return new string[0];

			return ce.Names;
		}