Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionRe: DataGridView Pin
T.EDY9-Sep-07 18:36
T.EDY9-Sep-07 18:36 
QuestionRe: DataGridView [modified] Pin
Assaf829-Sep-07 19:26
Assaf829-Sep-07 19:26 
AnswerRe: DataGridView [modified] Pin
T.EDY9-Sep-07 19:49
T.EDY9-Sep-07 19:49 
Questionarray of bit in c#.... Pin
mr.mohsen9-Sep-07 10:45
mr.mohsen9-Sep-07 10:45 
AnswerRe: array of bit in c#.... [modified] Pin
Jelle Hissink9-Sep-07 10:54
Jelle Hissink9-Sep-07 10:54 
AnswerRe: array of bit in c#.... Pin
Nissim Salomon9-Sep-07 11:01
Nissim Salomon9-Sep-07 11:01 
AnswerRe: array of bit in c#.... Pin
Istvan40411-Sep-07 2:03
Istvan40411-Sep-07 2:03 
QuestionSerialization vs Binary File Pin
Mark F.9-Sep-07 10:35
Mark F.9-Sep-07 10:35 
I made a simple configuration class to store program settings. My reason for this was to make the form application more portable (no HDD installation required), able to run on removable drives (e.g., USB), and did not write information to the user's profile or the registry. The answer was obviously a binary data file.

My first test was serialize/deserialize my properties using BinaryFormatter in a serializable class. Although I could have used XML serialization, I chose the binary file route versus text.

The test second option was to simply read and write the properties using BinaryReader and BinaryWriter.

The resulting output file (I call settings.bin) is about 1,000 bytes larger with the serialization technique then with the BinaryWriter option.

My question is; are there any performance differences between the two?

Thanks,
Mark
AnswerRe: Serialization vs Binary File Pin
Jelle Hissink9-Sep-07 10:52
Jelle Hissink9-Sep-07 10:52 
GeneralRe: Serialization vs Binary File Pin
Mark F.9-Sep-07 11:30
Mark F.9-Sep-07 11:30 
GeneralRe: Serialization vs Binary File Pin
Jelle Hissink9-Sep-07 12:06
Jelle Hissink9-Sep-07 12:06 
QuestionMIDI Keyboard Communication Pin
max292979-Sep-07 9:32
max292979-Sep-07 9:32 
AnswerRe: MIDI Keyboard Communication Pin
Giorgi Dalakishvili9-Sep-07 9:41
mentorGiorgi Dalakishvili9-Sep-07 9:41 
GeneralRe: MIDI Keyboard Communication Pin
max292979-Sep-07 15:18
max292979-Sep-07 15:18 
QuestionData Optimisation Pin
Glenn Van Beneden9-Sep-07 9:30
Glenn Van Beneden9-Sep-07 9:30 
AnswerRe: Data Optimisation Pin
Christian Graus9-Sep-07 9:46
protectorChristian Graus9-Sep-07 9:46 
AnswerRe: Data Optimisation Pin
Tom Jepp9-Sep-07 10:03
Tom Jepp9-Sep-07 10:03 
AnswerRe: Data Optimisation Pin
Luc Pattyn9-Sep-07 10:19
sitebuilderLuc Pattyn9-Sep-07 10:19 
AnswerRe: Data Optimisation Pin
Guffa9-Sep-07 10:47
Guffa9-Sep-07 10:47 
QuestionDataGrid Pin
Assaf829-Sep-07 8:48
Assaf829-Sep-07 8:48 
Questionstoring images to a dll on runtime Pin
Amar Chaudhary9-Sep-07 7:22
Amar Chaudhary9-Sep-07 7:22 
AnswerRe: storing images to a dll on runtime Pin
Giorgi Dalakishvili9-Sep-07 7:30
mentorGiorgi Dalakishvili9-Sep-07 7:30 
GeneralRe: storing images to a dll on runtime Pin
Amar Chaudhary9-Sep-07 7:57
Amar Chaudhary9-Sep-07 7:57 
GeneralRe: storing images to a dll on runtime Pin
Giorgi Dalakishvili9-Sep-07 8:10
mentorGiorgi Dalakishvili9-Sep-07 8:10 
GeneralRe: storing images to a dll on runtime Pin
Amar Chaudhary9-Sep-07 9:26
Amar Chaudhary9-Sep-07 9: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.