Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
Generalmdichild forms Pin
Anonymous11-May-03 6:34
Anonymous11-May-03 6:34 
GeneralRe: mdichild forms Pin
Jon Newman11-May-03 7:44
Jon Newman11-May-03 7:44 
GeneralRegions/Search/String Table Pin
Kant11-May-03 6:11
Kant11-May-03 6:11 
GeneralRe: Regions/Search/String Table Pin
James T. Johnson11-May-03 7:10
James T. Johnson11-May-03 7:10 
GeneralRe: Regions/Search/String Table Pin
Kant11-May-03 7:51
Kant11-May-03 7:51 
GeneralRe: Regions/Search/String Table Pin
James T. Johnson11-May-03 8:24
James T. Johnson11-May-03 8:24 
GeneralRe: Regions/Search/String Table Pin
Kant11-May-03 14:02
Kant11-May-03 14:02 
General[Serializable()] Pin
Anonymous11-May-03 4:32
Anonymous11-May-03 4:32 
Hey

I have a couple of classes that i use [Serializable()] on to save to file.
This workes fine(on thos objects that not got an Arraylist in it) =)

I got a class that have a ArrayList with alot of strings in its elemnets.

When i load the objekts in to my program, thay is loaded into an array to keeping track of them.

In this objects that is stored in the ARraylist i can see variabels, and here is the information right, but when i loog at the Arraylist in the objects, there is 0 elements, and thats not right.

Any ide how i could get this to work?

I Use this pice of code to read all object from file in to my StorArray
//reading of logg file
if(System.IO.File.Exists(Application.StartupPath + "\\logg.bin"))
{
StreamReader srlogg = new StreamReader(Application.StartupPath + "\\logg.bin",false);
BinaryFormatter bflogg = new BinaryFormatter();
this.logg = (ArrayList)bflogg.Deserialize(srlogg.BaseStream);
srlogg.Close();
}

To save the ARRaylist i use

//Save the logg file
StreamWriter swlogg = new StreamWriter(Application.StartupPath + "\\logg.bin",false);
BinaryFormatter bflogg = new BinaryFormatter();
bf.Serialize(swlogg.BaseStream, this.logg);
swlogg.Close();

Hop it is not to mixup

Best Regards

Jimmy

GeneralRe: [Serializable()] Pin
leppie11-May-03 4:56
leppie11-May-03 4:56 
GeneralRe: [Serializable()] Pin
Anonymous11-May-03 5:28
Anonymous11-May-03 5:28 
QuestionDataView override? Pin
Rocky Moore10-May-03 23:40
Rocky Moore10-May-03 23:40 
AnswerRe: DataView override? Pin
leppie11-May-03 4:36
leppie11-May-03 4:36 
GeneralRe: DataView override? Pin
Rocky Moore12-May-03 0:29
Rocky Moore12-May-03 0:29 
GeneralBest way to declare a protected set prop for read-only prop Pin
J. Dunlap10-May-03 19:10
J. Dunlap10-May-03 19:10 
GeneralRe: Best way to declare a protected set prop for read-only prop Pin
leppie11-May-03 4:28
leppie11-May-03 4:28 
GeneralRe: Best way to declare a protected set prop for read-only prop Pin
J. Dunlap11-May-03 8:27
J. Dunlap11-May-03 8:27 
GeneralWhere can I find the C# language API. Pin
KBeutler10-May-03 11:30
KBeutler10-May-03 11:30 
GeneralRe: Where can I find the C# language API. Pin
David Stone10-May-03 12:38
sitebuilderDavid Stone10-May-03 12:38 
GeneralHard disk number Pin
BoudewijnEctor10-May-03 9:33
BoudewijnEctor10-May-03 9:33 
GeneralRe: Hard disk number Pin
jhaga11-May-03 6:07
professionaljhaga11-May-03 6:07 
GeneralRe: Hard disk number Pin
BoudewijnEctor12-May-03 10:35
BoudewijnEctor12-May-03 10:35 
GeneralRe: Hard disk number Pin
Bo Hunter12-May-03 14:09
Bo Hunter12-May-03 14:09 
GeneralAccessing File Properties "Summary "Tab Info Pin
Grant11110-May-03 9:13
Grant11110-May-03 9:13 
GeneralRe: Accessing File Properties "Summary "Tab Info Pin
Stephane Rodriguez.10-May-03 19:26
Stephane Rodriguez.10-May-03 19:26 
GeneralAutoScroll ruin GDI Pin
israeli10-May-03 7:25
israeli10-May-03 7: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.