コード例 #1
0
ファイル: AbstractFactory.cs プロジェクト: atothek1/oase
 public ClassTypeDefinition( Type ItemClassType, FactoryAttribute.InstantiateType Instantiate )
 {
     this.ItemClassType = ItemClassType;
     this.Instantiate = Instantiate;
 }
コード例 #2
0
ファイル: AbstractFactory.cs プロジェクト: atothek1/oase
        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 ) );
        }
コード例 #3
0
ファイル: FactoryAttribute.cs プロジェクト: atothek1/oase
 public FactoryAttribute( String Identifier, FactoryAttribute.InstantiateType InstantiateType )
 {
     this.Identifier 	= Identifier;
     this.Instantiate 	= InstantiateType;
 }