B
bubbakittee
I'm new to C#, so this may well be a dumb question.
All my declarations seem horribly repetitive. Things like
ReasonToLive dotnet = new ReasonToLive;
double[,] table = new double[5,5];
Is there some better (less repetitive) way to declare things ??
After all, I don't have to type:
double number = new double;
Does it make a difference (to the declaration style) whether
I use a struct or a class for ReasonToLive ??
Can I achieve more succinct declarations by allocating
storage on the stack (as opposed to the heap ??
thanks
bk
All my declarations seem horribly repetitive. Things like
ReasonToLive dotnet = new ReasonToLive;
double[,] table = new double[5,5];
Is there some better (less repetitive) way to declare things ??
After all, I don't have to type:
double number = new double;
Does it make a difference (to the declaration style) whether
I use a struct or a class for ReasonToLive ??
Can I achieve more succinct declarations by allocating
storage on the stack (as opposed to the heap ??
thanks
bk