Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
GeneralRe: String Operations Pin
DaveyM6910-Jan-09 8:18
professionalDaveyM6910-Jan-09 8:18 
GeneralRe: String Operations Pin
Luc Pattyn10-Jan-09 8:36
sitebuilderLuc Pattyn10-Jan-09 8:36 
GeneralRe: String Operations Pin
DaveyM6910-Jan-09 8:43
professionalDaveyM6910-Jan-09 8:43 
GeneralRe: String Operations Pin
wasifmuneer10-Jan-09 8:56
wasifmuneer10-Jan-09 8:56 
GeneralRe: String Operations Pin
Luc Pattyn10-Jan-09 9:03
sitebuilderLuc Pattyn10-Jan-09 9:03 
GeneralRe: String Operations Pin
Dewald10-Jan-09 9:08
Dewald10-Jan-09 9:08 
GeneralRe: String Operations Pin
Judah Gabriel Himango10-Jan-09 11:53
sponsorJudah Gabriel Himango10-Jan-09 11:53 
GeneralRe: String Operations Pin
Luc Pattyn10-Jan-09 12:18
sitebuilderLuc Pattyn10-Jan-09 12:18 
The good thing is it doesn't need any maintenance Laugh | :laugh: ; it could be implemented as an extension method to the string class, I would suggest it gets named RemoveNot(s1,s2): remove all chars from s1 that are not in s2.

No idea what LINQ can do here.
And also no idea what regex could do (I was surprised no one ever mentioned it so far).

I am pretty sure both of them would look even worse, and have lower performance.
A lambda expression might come in handy, haven't really considered it (am still working in .NET 2.0)

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Love, happiness and fewer bugs for 2009!


GeneralRe: String Operations Pin
Guffa10-Jan-09 17:20
Guffa10-Jan-09 17:20 
GeneralRe: String Operations Pin
Luc Pattyn10-Jan-09 17:24
sitebuilderLuc Pattyn10-Jan-09 17:24 
AnswerRe: String Operations Pin
Guffa10-Jan-09 17:23
Guffa10-Jan-09 17:23 
GeneralRe: String Operations Pin
Luc Pattyn10-Jan-09 17:39
sitebuilderLuc Pattyn10-Jan-09 17:39 
GeneralRe: String Operations Pin
Guffa10-Jan-09 17:50
Guffa10-Jan-09 17:50 
GeneralRe: String Operations Pin
Luc Pattyn10-Jan-09 18:00
sitebuilderLuc Pattyn10-Jan-09 18:00 
GeneralRe: String Operations Pin
Guffa10-Jan-09 18:38
Guffa10-Jan-09 18:38 
GeneralRe: String Operations Pin
Luc Pattyn10-Jan-09 19:01
sitebuilderLuc Pattyn10-Jan-09 19:01 
AnswerRe: String Operations Pin
#realJSOP11-Jan-09 0:26
professional#realJSOP11-Jan-09 0:26 
QuestionChilkat (.NET) components? Pin
Ravi Bhavnani10-Jan-09 5:35
professionalRavi Bhavnani10-Jan-09 5:35 
AnswerRe: Chilkat (.NET) components? Pin
Judah Gabriel Himango10-Jan-09 10:41
sponsorJudah Gabriel Himango10-Jan-09 10:41 
GeneralRe: Chilkat (.NET) components? Pin
Ravi Bhavnani10-Jan-09 10:48
professionalRavi Bhavnani10-Jan-09 10:48 
Questionlooping through variables whose names start with... Pin
LordZoster10-Jan-09 4:19
LordZoster10-Jan-09 4:19 
AnswerRe: looping through variables whose names start with... Pin
LordZoster10-Jan-09 4:32
LordZoster10-Jan-09 4:32 
GeneralRe: looping through variables whose names start with... Pin
Luc Pattyn10-Jan-09 5:03
sitebuilderLuc Pattyn10-Jan-09 5:03 
QuestionHow to write log file directly without annoying virtual memory Pin
vantoora10-Jan-09 2:38
vantoora10-Jan-09 2:38 
AnswerRe: How to write log file directly without annoying virtual memory Pin
Dave Kreskowiak10-Jan-09 2:49
mveDave Kreskowiak10-Jan-09 2:49 

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.