Click here to Skip to main content
15,907,281 members
Home / Discussions / C#
   

C#

 
GeneralMessage Removed Pin
11-Sep-10 4:06
arkiboys11-Sep-10 4:06 
GeneralRe: Calculation Pin
harold aptroot11-Sep-10 4:12
harold aptroot11-Sep-10 4:12 
GeneralRe: Calculation Pin
PIEBALDconsult11-Sep-10 4:13
mvePIEBALDconsult11-Sep-10 4:13 
AnswerRe: Calculation Pin
PIEBALDconsult11-Sep-10 4:04
mvePIEBALDconsult11-Sep-10 4:04 
GeneralRe: Calculation Pin
arkiboys11-Sep-10 4:11
arkiboys11-Sep-10 4:11 
GeneralRe: Calculation Pin
PIEBALDconsult11-Sep-10 4:37
mvePIEBALDconsult11-Sep-10 4:37 
GeneralRe: Calculation Pin
arkiboys11-Sep-10 4:38
arkiboys11-Sep-10 4:38 
GeneralRe: Calculation Pin
Pete O'Hanlon11-Sep-10 4:56
mvePete O'Hanlon11-Sep-10 4:56 
GeneralRe: Calculation Pin
Luc Pattyn11-Sep-10 4:52
sitebuilderLuc Pattyn11-Sep-10 4:52 
GeneralRe: Calculation Pin
OriginalGriff11-Sep-10 5:56
mveOriginalGriff11-Sep-10 5:56 
GeneralRe: Calculation Pin
Luc Pattyn11-Sep-10 6:11
sitebuilderLuc Pattyn11-Sep-10 6:11 
QuestionCheckedListBox Pin
jojoba201110-Sep-10 20:06
jojoba201110-Sep-10 20:06 
AnswerRe: CheckedListBox Pin
Tony Richards11-Sep-10 0:56
Tony Richards11-Sep-10 0:56 
QuestionRe: Interface and Implementing Class Relationship Pin
infinateone10-Sep-10 14:37
infinateone10-Sep-10 14:37 
AnswerRe: Interface and Implementing Class Relationship Pin
PIEBALDconsult10-Sep-10 15:07
mvePIEBALDconsult10-Sep-10 15:07 
AnswerRe: Interface and Implementing Class Relationship Pin
Luc Pattyn10-Sep-10 17:11
sitebuilderLuc Pattyn10-Sep-10 17:11 
AnswerRe: Interface and Implementing Class Relationship [modified] Pin
Paul Michalik11-Sep-10 23:04
Paul Michalik11-Sep-10 23:04 
GeneralRe: Interface and Implementing Class Relationship [modified] Pin
infinateone12-Sep-10 9:01
infinateone12-Sep-10 9:01 
GeneralRe: Interface and Implementing Class Relationship Pin
Pete O'Hanlon12-Sep-10 10:16
mvePete O'Hanlon12-Sep-10 10:16 
GeneralRe: Interface and Implementing Class Relationship Pin
infinateone12-Sep-10 10:44
infinateone12-Sep-10 10:44 
AnswerRe: Interface and Implementing Class Relationship Pin
infinateone12-Sep-10 11:07
infinateone12-Sep-10 11:07 
GeneralRe: Interface and Implementing Class Relationship Pin
Paul Michalik12-Sep-10 20:30
Paul Michalik12-Sep-10 20:30 
GeneralRe: Interface and Implementing Class Relationship Pin
infinateone13-Sep-10 4:38
infinateone13-Sep-10 4:38 
GeneralRegular Expressions Pin
Bassam Abdul-Baki10-Sep-10 3:53
professionalBassam Abdul-Baki10-Sep-10 3:53 
Assuming I have a string of numbers beginning with "6" (i.e., "612345"). I wish to check if the numbers 6, 2, and 4 appear in that order. Thus, I can check for "6[0-9]*2[0-9]*4" using regular expressions. However, knowing that the numbers I'm checking have to begin with a 6, does it actually save me time to only search for "2[0-9]*4"? The reason I ask is because logically, using the first search, "6" would be found in the first character and "2" would start from the second character. However, using the second search, "2" would start from the first character which I already know to be a "6". In the first case, I get code readability, while in the second, I'm only searching for what the minimum is needed. I'm wondering if there is any optimization technique that could possibly make the first method run faster than the second?

Thanks!

GeneralRe: Regular Expressions Pin
Luc Pattyn10-Sep-10 3:58
sitebuilderLuc Pattyn10-Sep-10 3:58 

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.