public ClassTypeDefinition( Type ItemClassType, FactoryAttribute.InstantiateType Instantiate ) { this.ItemClassType = ItemClassType; this.Instantiate = Instantiate; }
public void Add( String Identifier, Type ItemClassType, FactoryAttribute.InstantiateType InstantiateType ) { if( this.classTypeMap.ContainsKey( Identifier ) && !this.ValidateType( ItemClassType ) ) return; this.classTypeMap.Add( Identifier, new ClassTypeDefinition( ItemClassType, InstantiateType ) ); }
public FactoryAttribute( String Identifier, FactoryAttribute.InstantiateType InstantiateType ) { this.Identifier = Identifier; this.Instantiate = InstantiateType; }