Click here to Skip to main content
15,921,989 members
Home / Discussions / C#
   

C#

 
GeneralRe: ListView and VScrollBar. Pin
Jano Petras18-Jul-05 14:36
Jano Petras18-Jul-05 14:36 
GeneralSolution is very simple! Pin
93Current19-Jul-05 9:14
93Current19-Jul-05 9:14 
QuestionThis program will self destruct in 10 sec....??? Pin
WetRivrRat18-Jul-05 12:22
WetRivrRat18-Jul-05 12:22 
AnswerRe: This program will self destruct in 10 sec....??? Pin
Christian Graus18-Jul-05 13:07
protectorChristian Graus18-Jul-05 13:07 
AnswerRe: This program will self destruct in 10 sec....??? Pin
Luis Alonso Ramos18-Jul-05 15:34
Luis Alonso Ramos18-Jul-05 15:34 
GeneralSNMP Pin
palwhatsup18-Jul-05 12:13
palwhatsup18-Jul-05 12:13 
GeneralRe: SNMP Pin
leppie19-Jul-05 0:32
leppie19-Jul-05 0:32 
QuestiondeSerialization is slow why? Pin
erdsah8818-Jul-05 11:48
erdsah8818-Jul-05 11:48 
I have serialized my bussiness objects to a file and tried to deserialize them
but it took so much time that creating those objects and putting data into them from database is even faster.

Am I missing any thing?I have though that the deserialization process for my objects from a file should be much much faster as I do not have to create the objects?


MY CODE
***********************
public static void SerializeIdentityMapRegistry()
{
System.IO.Stream s = System.IO.File.OpenWrite(@"C:\Documents and Settings\dogat.ILKON\Desktop\imap.dat");
BinaryFormatter b = new BinaryFormatter();
b.Serialize(s, DAL.identityMap.IdentityMapRegistry.getInstance());
s.Close();
}

public static void DeserializeIdentityMapRegistry()
{
System.IO.Stream s = System.IO.File.OpenRead(@"C:\Documents and Settings\dogat.ILKON\Desktop\imap.dat");
BinaryFormatter b = new BinaryFormatter();
DAL.identityMap.IdentityMapRegistry.Instance = (DAL.identityMap.IdentityMapRegistry)b.Deserialize(s);
s.Close();
}
AnswerRe: deSerialization is slow why? Pin
Robert Rohde18-Jul-05 18:42
Robert Rohde18-Jul-05 18:42 
AnswerRe: deSerialization is slow why? Pin
leppie19-Jul-05 0:40
leppie19-Jul-05 0:40 
GeneralTwain return bitmap Pin
baskota18-Jul-05 9:53
baskota18-Jul-05 9:53 
GeneralRe: Twain return bitmap Pin
Judah Gabriel Himango18-Jul-05 10:38
sponsorJudah Gabriel Himango18-Jul-05 10:38 
Generalcombo box on a windows form Pin
sea#18-Jul-05 8:01
sea#18-Jul-05 8:01 
GeneralRe: combo box on a windows form Pin
Judah Gabriel Himango18-Jul-05 8:57
sponsorJudah Gabriel Himango18-Jul-05 8:57 
GeneralRe: combo box on a windows form Pin
User 665818-Jul-05 8:59
User 665818-Jul-05 8:59 
GeneralRe: combo box on a windows form Pin
sea#18-Jul-05 9:30
sea#18-Jul-05 9:30 
GeneralRe: combo box on a windows form Pin
Jano Petras18-Jul-05 14:33
Jano Petras18-Jul-05 14:33 
GeneralRe: combo box on a windows form Pin
sea#18-Jul-05 20:14
sea#18-Jul-05 20:14 
GeneralRe: combo box on a windows form Pin
sea#18-Jul-05 22:06
sea#18-Jul-05 22:06 
GeneralRow in DataSet Pin
zaboboa18-Jul-05 7:29
zaboboa18-Jul-05 7:29 
GeneralRe: Row in DataSet Pin
Not Active18-Jul-05 7:54
mentorNot Active18-Jul-05 7:54 
GeneralRe: Row in DataSet Pin
zaboboa18-Jul-05 9:53
zaboboa18-Jul-05 9:53 
GeneralRe: Row in DataSet Pin
Dave Kreskowiak18-Jul-05 8:46
mveDave Kreskowiak18-Jul-05 8:46 
GeneralRe: Row in DataSet Pin
zaboboa18-Jul-05 9:55
zaboboa18-Jul-05 9:55 
GeneralCustom textbox with a unchangable text Pin
Razor_works18-Jul-05 7:26
sussRazor_works18-Jul-05 7:26 

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.