J
Jon Turner
Is this possible with reflection ? I want to have multiple variables of the
same class. Each variable would have
an attribute associated with it. The class would be responsible for
performing queries dependent on the attributes
associated to that instance. If so, what would the code look like to read
this variable attribute ?
Many Thanks
For example
[attribute: DB('Table1','Column1')]
CBClass db1 = new (CBClass);
[attribute: DB('Table2','Column2')]
CBClass db2 = new (CBClass);
class CBClass
{
CBClass()
{
// I would initialize this instance with the appropriate data
}
}
same class. Each variable would have
an attribute associated with it. The class would be responsible for
performing queries dependent on the attributes
associated to that instance. If so, what would the code look like to read
this variable attribute ?
Many Thanks
For example
[attribute: DB('Table1','Column1')]
CBClass db1 = new (CBClass);
[attribute: DB('Table2','Column2')]
CBClass db2 = new (CBClass);
class CBClass
{
CBClass()
{
// I would initialize this instance with the appropriate data
}
}