C
Carlo Razzeto
First of all, thanks to Sherif ElMetainy and Jonathan Ruckert for answering
my last question. Now I have a real newbie question... Here is the scenario,
I am writing an object in C# called Account (represents the checking
account). This object will contain an array of Activity object (represents
account activity) which in turn will contain an array of Line_Item objects
(representing individual items associated with say, a Debit CC purchase.) In
my Account class, I have defined:
public Activity[] account_activity;
Later in my code (in a load_class() method) I want to fill in this array
with the appropriate number of activity objects (one for every row in my
Activity Table associated with the checking account). I am assuming that at
some point I need to define how big my array of Activity objects is going to
be (similar to the C++ int *i = new int[num]
, how can this be done in C#?
Or does this need to be done in C#? I'm assuming that since .Net is fairly
strongly typed something like this would need to be done. Because of this I
was going through the trouble of declaring DataAdapters, DataTables and
DataSets so I can find out how many rows were returned from my query. Thanks
for any help,
Carlo
my last question. Now I have a real newbie question... Here is the scenario,
I am writing an object in C# called Account (represents the checking
account). This object will contain an array of Activity object (represents
account activity) which in turn will contain an array of Line_Item objects
(representing individual items associated with say, a Debit CC purchase.) In
my Account class, I have defined:
public Activity[] account_activity;
Later in my code (in a load_class() method) I want to fill in this array
with the appropriate number of activity objects (one for every row in my
Activity Table associated with the checking account). I am assuming that at
some point I need to define how big my array of Activity objects is going to
be (similar to the C++ int *i = new int[num]

Or does this need to be done in C#? I'm assuming that since .Net is fairly
strongly typed something like this would need to be done. Because of this I
was going through the trouble of declaring DataAdapters, DataTables and
DataSets so I can find out how many rows were returned from my query. Thanks
for any help,
Carlo