Click here to Skip to main content
15,914,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: treeviews... Pin
S. Senthil Kumar26-Jun-05 23:50
S. Senthil Kumar26-Jun-05 23:50 
GeneralRe: treeviews... Pin
deep727-Jun-05 1:51
deep727-Jun-05 1:51 
GeneralRe: treeviews... Pin
deep727-Jun-05 1:54
deep727-Jun-05 1:54 
GeneralMessage Queue Pin
Roger Alsing26-Jun-05 23:23
Roger Alsing26-Jun-05 23:23 
GeneralReading Text file Pin
LiamD26-Jun-05 23:17
LiamD26-Jun-05 23:17 
GeneralRe: Reading Text file Pin
mav.northwind26-Jun-05 23:34
mav.northwind26-Jun-05 23:34 
GeneralRe: Reading Text file Pin
LiamD27-Jun-05 2:05
LiamD27-Jun-05 2:05 
GeneralRe: Reading Text file Pin
mav.northwind27-Jun-05 2:33
mav.northwind27-Jun-05 2:33 
If you want to have all the data in memory, then yes, you'd have 5000 instances of this class.

You could, for example, add a static function to your class FromString() to perform parsing of a single input line and return a new instance holding the correct values.

This instance would then be added to your collection.

Something like this:
MyClassCollection coll = new MyClassCollection();
while((text_line = tr.ReadLine()) != null)
{
  MyClass cls = MyClass.FromString(text_line);
  coll.Add(cls);
}
Regards,
mav
GeneralRe: Reading Text file Pin
Anthony Baraff27-Jun-05 7:37
Anthony Baraff27-Jun-05 7:37 
GeneralRe: Reading Text file Pin
LiamD27-Jun-05 21:19
LiamD27-Jun-05 21:19 
QuestionHow to send a E mail using C#? Pin
pubududilena26-Jun-05 22:56
pubududilena26-Jun-05 22:56 
AnswerRe: How to send a E mail using C#? Pin
mav.northwind26-Jun-05 23:29
mav.northwind26-Jun-05 23:29 
Generalfile open check Pin
syseca_challenge26-Jun-05 22:25
syseca_challenge26-Jun-05 22:25 
GeneralRe: file open check Pin
mav.northwind26-Jun-05 22:53
mav.northwind26-Jun-05 22:53 
GeneralRe: file open check Pin
V.27-Jun-05 0:46
professionalV.27-Jun-05 0:46 
GeneralRe: file open check Pin
mav.northwind27-Jun-05 1:03
mav.northwind27-Jun-05 1:03 
GeneralRe: file open check Pin
syseca_challenge27-Jun-05 1:31
syseca_challenge27-Jun-05 1:31 
GeneralRe: file open check Pin
V.27-Jun-05 1:33
professionalV.27-Jun-05 1:33 
GeneralRe: file open check Pin
mav.northwind27-Jun-05 1:51
mav.northwind27-Jun-05 1:51 
GeneralRe: file open check Pin
syseca_challenge27-Jun-05 1:55
syseca_challenge27-Jun-05 1:55 
GeneralRe: file open check Pin
mav.northwind27-Jun-05 1:56
mav.northwind27-Jun-05 1:56 
GeneralRe: file open check Pin
syseca_challenge27-Jun-05 2:40
syseca_challenge27-Jun-05 2:40 
General.net 2005 importing!!!! Pin
innocent7326-Jun-05 20:49
innocent7326-Jun-05 20:49 
GeneralRe: .net 2005 importing!!!! Pin
Dave Kreskowiak27-Jun-05 9:24
mveDave Kreskowiak27-Jun-05 9:24 
GeneralCalling C# from Managed C++ Pin
wdli26-Jun-05 19:25
wdli26-Jun-05 19:25 

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.