Example #1
0
 public ClassTypeDefinition( Type ItemClassType, FactoryAttribute.InstantiateType Instantiate )
 {
     this.ItemClassType = ItemClassType;
     this.Instantiate = Instantiate;
 }
Example #2
0
        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 ) );
        }
Example #3
0
 public FactoryAttribute( String Identifier, FactoryAttribute.InstantiateType InstantiateType )
 {
     this.Identifier 	= Identifier;
     this.Instantiate 	= InstantiateType;
 }