Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
QuestionHow to seal a namespace Pin
Member 30621766-Oct-08 5:11
Member 30621766-Oct-08 5:11 
AnswerRe: How to seal a namespace Pin
Mark Churchill6-Oct-08 5:26
Mark Churchill6-Oct-08 5:26 
GeneralRe: How to seal a namespace Pin
Member 30621766-Oct-08 5:41
Member 30621766-Oct-08 5:41 
GeneralRe: How to seal a namespace Pin
Scott Dorman6-Oct-08 6:01
professionalScott Dorman6-Oct-08 6:01 
AnswerRe: How to seal a namespace Pin
S. Senthil Kumar6-Oct-08 6:00
S. Senthil Kumar6-Oct-08 6:00 
AnswerRe: How to seal a namespace Pin
Scott Dorman6-Oct-08 6:06
professionalScott Dorman6-Oct-08 6:06 
QuestionUnit Testing in VSTS 2008 [modified] Pin
new2pgrmg6-Oct-08 4:32
new2pgrmg6-Oct-08 4:32 
Questionhow to run external applications in c# Pin
abiniyam6-Oct-08 3:57
abiniyam6-Oct-08 3:57 
AnswerRe: how to run external applications in c# Pin
Pete O'Hanlon6-Oct-08 4:05
mvePete O'Hanlon6-Oct-08 4:05 
AnswerRe: how to run external applications in c# Pin
Wes Aday6-Oct-08 4:10
professionalWes Aday6-Oct-08 4:10 
Questionhow to run exterrnal applications in c# Pin
abiniyam6-Oct-08 3:57
abiniyam6-Oct-08 3:57 
AnswerRe: how to run exterrnal applications in c# Pin
leppie6-Oct-08 4:07
leppie6-Oct-08 4:07 
GeneralRe: how to run exterrnal applications in c# Pin
Pete O'Hanlon6-Oct-08 4:50
mvePete O'Hanlon6-Oct-08 4:50 
QuestionReplicating Perl's unpack functionality in C# Pin
JohnGGG6-Oct-08 3:19
JohnGGG6-Oct-08 3:19 
AnswerRe: Replicating Perl's unpack functionality in C# Pin
leppie6-Oct-08 20:50
leppie6-Oct-08 20:50 
Questionhow to run flash Pin
abiniyam6-Oct-08 3:19
abiniyam6-Oct-08 3:19 
AnswerRe: how to run flash Pin
John_Adams6-Oct-08 3:48
John_Adams6-Oct-08 3:48 
AnswerRe: how to run flash Pin
Thomas Stockwell6-Oct-08 6:12
professionalThomas Stockwell6-Oct-08 6:12 
QuestionHow to make an array of a Class..? Pin
fmlove6-Oct-08 2:13
fmlove6-Oct-08 2:13 
AnswerRe: How to make an array of a Class..? Pin
Colin Angus Mackay6-Oct-08 2:17
Colin Angus Mackay6-Oct-08 2:17 
GeneralRe: How to make an array of a Class..? Pin
fmlove6-Oct-08 2:20
fmlove6-Oct-08 2:20 
GeneralRe: How to make an array of a Class..? Pin
Colin Angus Mackay6-Oct-08 2:23
Colin Angus Mackay6-Oct-08 2:23 
AnswerRe: How to make an array of a Class..? Pin
N a v a n e e t h6-Oct-08 2:25
N a v a n e e t h6-Oct-08 2:25 
AnswerRe: How to make an array of a Class..? [modified] Pin
DaveyM696-Oct-08 2:26
professionalDaveyM696-Oct-08 2:26 
Colin Angus Mackay has given you the correct answer to your question above.

However, it's increasingly rare to need to have an array. Normally all we need is a collection in which case I'd recommend a generic list (from System.Collections.Generic).
public List<item> itemCollection = new List<item>();

You'll find that itemCollection has just about everything you'll need to manage the collection including the ToArray() method if you do need your items in an actual array.

Edit: damn these html tags screwing up the generics!

modified on Monday, October 6, 2008 8:35 AM

GeneralRe: How to make an array of a Class..? Pin
#realJSOP6-Oct-08 2:36
mve#realJSOP6-Oct-08 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.