Click here to Skip to main content
15,905,071 members
Home / Discussions / C#
   

C#

 
GeneralRe: Parse CSV using RegularExpression Pin
OriginalGriff29-Jun-13 1:46
mveOriginalGriff29-Jun-13 1:46 
GeneralRe: Parse CSV using RegularExpression Pin
Richard MacCutchan29-Jun-13 5:14
mveRichard MacCutchan29-Jun-13 5:14 
GeneralRe: Parse CSV using RegularExpression Pin
OriginalGriff29-Jun-13 5:40
mveOriginalGriff29-Jun-13 5:40 
AnswerRe: Parse CSV using RegularExpression Pin
OriginalGriff29-Jun-13 1:44
mveOriginalGriff29-Jun-13 1:44 
GeneralRe: Parse CSV using RegularExpression Pin
haha_c30-Jun-13 15:30
haha_c30-Jun-13 15:30 
GeneralRe: Parse CSV using RegularExpression Pin
OriginalGriff30-Jun-13 22:18
mveOriginalGriff30-Jun-13 22:18 
AnswerRe: Parse CSV using RegularExpression Pin
Mycroft Holmes30-Jun-13 22:09
professionalMycroft Holmes30-Jun-13 22:09 
Questiontransforming a MemoryStream instance into a string Pin
BillWoodruff28-Jun-13 22:27
professionalBillWoodruff28-Jun-13 22:27 
WinForms, C#, .NET 4.5, VS 2012 v.3

I am successfully using a BinaryFormatter to serialize, and de-serialize, instances of a moderately complex class.

There is a reason, related to using a 3rd. party control, I need to get the in-memory serialized stream into a string, and, later, convert it from string format back to MemoryStream. At least that's a working strategy right now ... which may be tossed out.

What I don't want to do is write temporary files on the fly. My first experiments were with using XmlReader, and XmlWriter, and I could not figure out how to use, and then re-use, a temporary file written to disk in a loop.

As you probably know, an in-memory binary-formatted stream is essentially "readable" as a Byte[].

My experiments with using the Linq Cast<string>(), Convert.ToString() ... and so forth, have all been wastes of time (should have known better).

I'd appreciate any ideas you may have. Perhaps I have missed out on finding a way to write XML to an in-memory stream ? Temporarily blinded by too much experimentation ? Smile | :)

thanks, Bill
“Human beings do not live in the objective world alone, nor alone in the world of social activity as ordinarily understood, but are very much at the mercy of the particular language which has become the medium of expression for their society. It is quite an illusion to imagine that one adjusts to reality essentially without the use of language and that language is merely an incidental means of solving specific problems of communication or reflection." Edward Sapir, 1929

AnswerRe: transforming a MemoryStream instance into a string Pin
OriginalGriff28-Jun-13 22:36
mveOriginalGriff28-Jun-13 22:36 
GeneralRe: transforming a MemoryStream instance into a string Pin
BillWoodruff29-Jun-13 5:49
professionalBillWoodruff29-Jun-13 5:49 
GeneralRe: transforming a MemoryStream instance into a string Pin
OriginalGriff29-Jun-13 5:58
mveOriginalGriff29-Jun-13 5:58 
GeneralRe: transforming a MemoryStream instance into a string Pin
BillWoodruff29-Jun-13 16:41
professionalBillWoodruff29-Jun-13 16:41 
AnswerRe: transforming a MemoryStream instance into a string Pin
Alan N29-Jun-13 8:24
Alan N29-Jun-13 8:24 
GeneralRe: transforming a MemoryStream instance into a string Pin
BillWoodruff29-Jun-13 16:42
professionalBillWoodruff29-Jun-13 16:42 
AnswerRe: transforming a MemoryStream instance into a string Pin
jschell29-Jun-13 11:46
jschell29-Jun-13 11:46 
GeneralRe: transforming a MemoryStream instance into a string Pin
BillWoodruff29-Jun-13 16:59
professionalBillWoodruff29-Jun-13 16:59 
GeneralRe: transforming a MemoryStream instance into a string Pin
jschell1-Jul-13 8:06
jschell1-Jul-13 8:06 
QuestionHow to get cell values in devexpress gridcontrol via a function Pin
Member 253280028-Jun-13 18:37
Member 253280028-Jun-13 18:37 
AnswerRe: How to get cell values in devexpress gridcontrol via a function Pin
Richard MacCutchan28-Jun-13 23:16
mveRichard MacCutchan28-Jun-13 23:16 
GeneralRe: How to get cell values in devexpress gridcontrol via a function Pin
Member 253280030-Jun-13 15:29
Member 253280030-Jun-13 15:29 
GeneralRe: How to get cell values in devexpress gridcontrol via a function Pin
Member 253280030-Jun-13 18:03
Member 253280030-Jun-13 18:03 
GeneralRe: How to get cell values in devexpress gridcontrol via a function Pin
Richard MacCutchan30-Jun-13 21:19
mveRichard MacCutchan30-Jun-13 21:19 
QuestionGrid Based Games Pin
Midnight Ahri28-Jun-13 1:34
Midnight Ahri28-Jun-13 1:34 
AnswerRe: Grid Based Games Pin
Pete O'Hanlon28-Jun-13 2:22
mvePete O'Hanlon28-Jun-13 2:22 
GeneralRe: Grid Based Games Pin
Midnight Ahri28-Jun-13 6:23
Midnight Ahri28-Jun-13 6:23 

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.