H
Hoop
Hi,
I have a class that I make an array of in the app, like,
//create an array of Module's
public Modules[] aModule = new Modules[16];
This class has a few pieces of data that have the same value. Right
now I have set the data up as properties,
and read them like,
module[moduleIDIndex].NumOfInputs;
via an index.
Since the NumOfInputs is constant from module to module I would like
to drop out the array index
and just acess the data,
module.NumOfInputs. I do not want to make this static since there
might not be any instances of this
module.
Is there a way to do this, or maybe as a property access is the best
way?
Thanks
Jeff
I have a class that I make an array of in the app, like,
//create an array of Module's
public Modules[] aModule = new Modules[16];
This class has a few pieces of data that have the same value. Right
now I have set the data up as properties,
and read them like,
module[moduleIDIndex].NumOfInputs;
via an index.
Since the NumOfInputs is constant from module to module I would like
to drop out the array index
and just acess the data,
module.NumOfInputs. I do not want to make this static since there
might not be any instances of this
module.
Is there a way to do this, or maybe as a property access is the best
way?
Thanks
Jeff