Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
AnswerRe: call C++ dll from C# without name mangling Pin
Wayne Gaylard28-Nov-11 18:03
professionalWayne Gaylard28-Nov-11 18:03 
GeneralRe: call C++ dll from C# without name mangling Pin
Paulraj G28-Nov-11 18:16
Paulraj G28-Nov-11 18:16 
GeneralRe: call C++ dll from C# without name mangling Pin
Richard MacCutchan28-Nov-11 22:58
mveRichard MacCutchan28-Nov-11 22:58 
QuestionRegEx.Split Pin
devvvy28-Nov-11 17:01
devvvy28-Nov-11 17:01 
AnswerRe: RegEx.Split Pin
Peter_in_278028-Nov-11 17:18
professionalPeter_in_278028-Nov-11 17:18 
AnswerRe: RegEx.Split Pin
devvvy28-Nov-11 17:29
devvvy28-Nov-11 17:29 
AnswerRe: RegEx.Split Pin
PIEBALDconsult28-Nov-11 17:48
mvePIEBALDconsult28-Nov-11 17:48 
AnswerRe: RegEx.Split Pin
BillWoodruff29-Nov-11 14:22
professionalBillWoodruff29-Nov-11 14:22 
I'm not proposing this as a "solution," but more to illustrate a corollary question that this thread brings up, for me.
private string Src = "467.00 9:32PM EST 467.32 9:33PM EST 468.18 9:34PM EST ";

string[] splitOnAry = new string[] { "EST" };

var ListOfValuesAndTimes = Src.Trim().Split(splitOnAry, StringSplitOptions.RemoveEmptyEntries).Select(s => s + "EST").ToList();
Which do you think would be easier to maintain, and, for new programmers (perhaps not deeply versed in RegEx), to understand ? The above code or RegEx ? And, yes, I am ignoring the question of which would be more "performant" under "high load" (given you can compile RegEx in C#).

I admit that doing a Linq iteration just to add "EST" back into the results is ugly, and there is an assumption here, on my part, that CS graduates these days are not coming out of whatever schools with the kind of mastery of RegEx you could expect even ten years ago (a very questionable assumption). And, I'd be curious about to what extent "self-made" programmers ... not coming out of academic CS ... are also as well-versed in RegEx as in days of yore.

Just curious.

thanks, Bill
"Anyone who shows me my 'blind spots' gives me the gift of sight." ... a thought from the shallows of the deeply shallow mind of ... Bill

GeneralRe: RegEx.Split Pin
devvvy29-Nov-11 22:56
devvvy29-Nov-11 22:56 
GeneralRe: RegEx.Split Pin
BillWoodruff30-Nov-11 7:44
professionalBillWoodruff30-Nov-11 7:44 
QuestionDatagridview autogenerate columns false dont work Pin
ChauhanAjay28-Nov-11 16:36
ChauhanAjay28-Nov-11 16:36 
QuestionAutomatic deployment Pin
Super Lloyd28-Nov-11 14:52
Super Lloyd28-Nov-11 14:52 
AnswerRe: Automatic deployment Pin
Dave Kreskowiak28-Nov-11 15:45
mveDave Kreskowiak28-Nov-11 15:45 
GeneralRe: Automatic deployment Pin
Super Lloyd28-Nov-11 16:07
Super Lloyd28-Nov-11 16:07 
Questioncompare two datatables Pin
jojoba201128-Nov-11 4:35
jojoba201128-Nov-11 4:35 
AnswerRe: compare two datatables Pin
Rob Philpott28-Nov-11 5:37
Rob Philpott28-Nov-11 5:37 
AnswerRe: compare two datatables Pin
SilimSayo28-Nov-11 5:45
SilimSayo28-Nov-11 5:45 
AnswerRe: compare two datatables Pin
PIEBALDconsult28-Nov-11 10:05
mvePIEBALDconsult28-Nov-11 10:05 
GeneralRe: compare two datatables Pin
jojoba201129-Nov-11 20:39
jojoba201129-Nov-11 20:39 
GeneralRe: compare two datatables Pin
PIEBALDconsult30-Nov-11 1:50
mvePIEBALDconsult30-Nov-11 1:50 
QuestionWindows Media Encoder problem with Desktop Experience in windows server 2008 Pin
chandrasenareddybhumireddy28-Nov-11 1:31
chandrasenareddybhumireddy28-Nov-11 1:31 
QuestionMultiple Graphics.DrawString calls Pin
Danzy8328-Nov-11 0:24
Danzy8328-Nov-11 0:24 
AnswerRe: Multiple Graphics.DrawString calls Pin
Luc Pattyn28-Nov-11 0:50
sitebuilderLuc Pattyn28-Nov-11 0:50 
GeneralRe: Multiple Graphics.DrawString calls Pin
Danzy8328-Nov-11 1:03
Danzy8328-Nov-11 1:03 
AnswerRe: Multiple Graphics.DrawString calls Pin
Wayne Gaylard28-Nov-11 0:55
professionalWayne Gaylard28-Nov-11 0:55 

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.