Click here to Skip to main content
15,912,756 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Coding styles Pin
Abhinav S29-Oct-10 19:13
Abhinav S29-Oct-10 19:13 
AnswerRe: Coding styles [modified] Pin
Jeff Connelly17-Nov-10 3:42
Jeff Connelly17-Nov-10 3:42 
QuestionSeeking a binary read/write file stream class Pin
PIEBALDconsult28-Oct-10 15:45
mvePIEBALDconsult28-Oct-10 15:45 
AnswerRe: Seeking a binary read/write file stream class Pin
Luc Pattyn28-Oct-10 15:57
sitebuilderLuc Pattyn28-Oct-10 15:57 
GeneralRe: Seeking a binary read/write file stream class Pin
PIEBALDconsult28-Oct-10 16:57
mvePIEBALDconsult28-Oct-10 16:57 
GeneralRe: Seeking a binary read/write file stream class Pin
Luc Pattyn28-Oct-10 17:14
sitebuilderLuc Pattyn28-Oct-10 17:14 
GeneralRe: Seeking a binary read/write file stream class [modified] Pin
PIEBALDconsult28-Oct-10 17:21
mvePIEBALDconsult28-Oct-10 17:21 
AnswerRe: Seeking a binary read/write file stream class Pin
_Erik_29-Oct-10 3:10
_Erik_29-Oct-10 3:10 
I remember some years ago I tried something similar just for fun. I used reflection recursively to reduce the object to its minimal parts and then writting its binary data was far easy.

For example, Guid data is hold by some private fields: _a (int); _b and _c (short); _d, _e, _f, _g, _h, _i, _j and _k (byte). So, to binary write a Guid I retrieved its private fields (which are of, let's say, simple types) and values through reflecton and then wrote the data to the stream. Deserializing was the reverse process.

Recursion had to be used when the fields were not of simple types.

It was quite tricky (and funny) to develop that, but after making it work I lost interest on it and, unfortunately, I lost the code as well, but maybe this suggestion can help.
GeneralRe: Seeking a binary read/write file stream class Pin
PIEBALDconsult29-Oct-10 3:27
mvePIEBALDconsult29-Oct-10 3:27 
AnswerRe: Seeking a binary read/write file stream class Pin
Andy Brummer3-Nov-10 18:19
sitebuilderAndy Brummer3-Nov-10 18:19 
GeneralRe: Seeking a binary read/write file stream class [modified] Pin
PIEBALDconsult7-Nov-10 4:44
mvePIEBALDconsult7-Nov-10 4:44 
Questionhelp needed Pin
rksreadero28-Oct-10 8:52
rksreadero28-Oct-10 8:52 
AnswerRe: help needed Pin
Luc Pattyn28-Oct-10 9:07
sitebuilderLuc Pattyn28-Oct-10 9:07 
AnswerRe: help needed Pin
kadaoui el mehdi28-Oct-10 11:19
kadaoui el mehdi28-Oct-10 11:19 
GeneralRe: help needed Pin
Pete O'Hanlon28-Oct-10 11:34
mvePete O'Hanlon28-Oct-10 11:34 
GeneralRe: help needed Pin
kadaoui el mehdi28-Oct-10 11:39
kadaoui el mehdi28-Oct-10 11:39 
GeneralRe: help needed Pin
Pete O'Hanlon28-Oct-10 11:47
mvePete O'Hanlon28-Oct-10 11:47 
GeneralRe: help needed Pin
kadaoui el mehdi28-Oct-10 11:49
kadaoui el mehdi28-Oct-10 11:49 
AnswerRe: help needed Pin
TweakBird28-Oct-10 23:38
TweakBird28-Oct-10 23:38 
AnswerRe: help needed Pin
Pete O'Hanlon29-Oct-10 0:40
mvePete O'Hanlon29-Oct-10 0:40 
AnswerRe: help needed Pin
thatraja28-Jan-12 5:03
professionalthatraja28-Jan-12 5:03 
QuestionTag-object, use of memory, dispose Pin
Load_error28-Oct-10 6:49
Load_error28-Oct-10 6:49 
AnswerRe: Tag-object, use of memory, dispose Pin
Luc Pattyn28-Oct-10 9:10
sitebuilderLuc Pattyn28-Oct-10 9:10 
GeneralRe: Tag-object, use of memory, dispose Pin
Load_error28-Oct-10 11:47
Load_error28-Oct-10 11:47 
AnswerRe: Tag-object, use of memory, dispose Pin
Luc Pattyn28-Oct-10 12:09
sitebuilderLuc Pattyn28-Oct-10 12:09 

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.