Server.Commands.Categorization.IsConstructable C# (CSharp) Méthode

IsConstructable() private static méthode

private static IsConstructable ( Type type ) : bool
type System.Type
Résultat bool
		private static bool IsConstructable( Type type )
		{
			if ( !type.IsSubclassOf( typeofItem ) && !type.IsSubclassOf( typeofMobile ) )
				return false;

			ConstructorInfo ctor = type.GetConstructor( Type.EmptyTypes );

			return ( ctor != null && ctor.IsDefined( typeofConstructable, false ) );
		}