Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
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 
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 
^upvoted

Many thanks, OG !

In this case it turned out that using Unicode encoding was absolutely necessary: UTF-8, or ASCII (the only other encodings I tried), would throw errors deserializing DateTime values from a plain-vanilla .NET string-type.

When it takes me what seems like much too long a time to solve an issue like this, I usually ask myself the following questions:

1. am I dumb ?
2. did I study/research/look-up MS docs "dumb" ?

These first two questions are a result of, unfortunately, "once a Social Worker always a Social Worker" Smile | :) Of course, I assume that MS docs will usually be of no help, based on experience.

Then, if the answers turn out to be fairly simple, I ask the question: am I "onto something" (in this case via your kindly help) that could be valuable for other people on CP to have access to ?

Not sure, here. The case of needing to save an instance of a Class in a MemoryStream, then convert it to a string, so a 3rd. party control's very efficient own serializer can successfully serialize it ... and, secondarily ... to fish out the string resulting from de-serialising the 3rd. party control, and then turn that back into a MemoryStream in order to de-serialize that back into an instance of a Class ...

Well, the whole business kind of has a "bad code smell" to me. Might be better to do the tango using something like Mehdi Gholam's FastJSON (but, then the 3rd. party control probably won't be serializable) ?

What do you think: can anyone else benefit ?

yours, 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


modified 29-Jun-13 23:10pm.

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 
AnswerRe: Grid Based Games Pin
Emmanuel Medina28-Jun-13 9:03
professionalEmmanuel Medina28-Jun-13 9:03 
Question[RESOLVED] Regular Expressions Problem Pin
Sonhospa27-Jun-13 23:13
Sonhospa27-Jun-13 23:13 

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.