Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problems with multicast Pin
Charlie Williams7-Dec-04 4:40
Charlie Williams7-Dec-04 4:40 
GeneralRe: Problems with multicast Pin
Anup_Shankar7-Dec-04 13:39
Anup_Shankar7-Dec-04 13:39 
GeneralRe: Problems with multicast Pin
Dave Kreskowiak7-Dec-04 5:06
mveDave Kreskowiak7-Dec-04 5:06 
GeneralSocket problem Pin
jtmtv187-Dec-04 1:21
jtmtv187-Dec-04 1:21 
GeneralRe: Socket problem Pin
J4amieC7-Dec-04 2:35
J4amieC7-Dec-04 2:35 
GeneralRe: Socket problem Pin
jtmtv187-Dec-04 11:42
jtmtv187-Dec-04 11:42 
GeneralSerialize Pin
andreas_farnstrand7-Dec-04 0:59
andreas_farnstrand7-Dec-04 0:59 
GeneralRe: Serialize Pin
jtmtv187-Dec-04 1:35
jtmtv187-Dec-04 1:35 
throw in some of your code you used to save the serialized arraylist. i have my serialize class wrote with this code.. among others. this will fill the memorystream and return its byte[]

MemoryStream memstr = new MemoryStream();
BinaryFormatter formatter =new BinaryFormatter();
formatter.Serialize(memstr,MyObjectHere);
return memstr.ToArray();

to save it i call this.

Stream fs= File.Create(path);
byte[] tmp = \*(The Byte Array From Above here)*\ memstr.ToArray();
fs.Write(tmp,0,tmp.Length);

//the serialized object is wrote now. to open it

stream= File.Open(path,FileMode.Open);
//
BinaryFormatter bf = new BinaryFormatter();
Object =(CastingObjectHere)bf.Deserialize(stream);

hope this helps, if not. someone older and wiser will help u =)


The Code Project Is Your Friend...
GeneralRe: Serialize Pin
Daniel Turini7-Dec-04 4:29
Daniel Turini7-Dec-04 4:29 
GeneralProcessController Question Pin
realmontanakid7-Dec-04 0:23
realmontanakid7-Dec-04 0:23 
GeneralRe: ProcessController Question Pin
Daniel Turini7-Dec-04 4:22
Daniel Turini7-Dec-04 4:22 
GeneralRe: ProcessController Question Pin
realmontanakid7-Dec-04 4:58
realmontanakid7-Dec-04 4:58 
GeneralStrings Constants Pin
Dirso6-Dec-04 23:51
Dirso6-Dec-04 23:51 
GeneralRe: Strings Constants Pin
Robin Panther7-Dec-04 3:17
Robin Panther7-Dec-04 3:17 
GeneralJIT Pin
Amirzeb6-Dec-04 23:19
Amirzeb6-Dec-04 23:19 
GeneralRe: JIT Pin
benjymous7-Dec-04 0:46
benjymous7-Dec-04 0:46 
GeneralMessage loop Pin
akarwa6-Dec-04 22:52
akarwa6-Dec-04 22:52 
GeneralRe: Message loop Pin
Daniel Turini7-Dec-04 4:40
Daniel Turini7-Dec-04 4:40 
GeneralCustom control properties Pin
spif20016-Dec-04 22:33
spif20016-Dec-04 22:33 
GeneralRe: Custom control properties Pin
spif20016-Dec-04 23:20
spif20016-Dec-04 23:20 
Generalcount number of rows in query Pin
Stijn Goris6-Dec-04 21:57
Stijn Goris6-Dec-04 21:57 
GeneralRe: count number of rows in query Pin
sreejith ss nair7-Dec-04 1:59
sreejith ss nair7-Dec-04 1:59 
GeneralRe: count number of rows in query Pin
Jay Shankar7-Dec-04 17:00
Jay Shankar7-Dec-04 17:00 
QuestionQuery SPS database? Pin
6-Dec-04 20:57
suss6-Dec-04 20:57 
QuestionHow can I dispose a client activated proxy in .Net Remoting? Pin
Bjoern.adG6-Dec-04 20:57
Bjoern.adG6-Dec-04 20:57 

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.