Click here to Skip to main content
15,908,909 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Kevin Marois12-Sep-16 11:58
professionalKevin Marois12-Sep-16 11:58 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Dave Kreskowiak12-Sep-16 12:02
mveDave Kreskowiak12-Sep-16 12:02 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Kevin Marois12-Sep-16 12:04
professionalKevin Marois12-Sep-16 12:04 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Dave Kreskowiak12-Sep-16 12:14
mveDave Kreskowiak12-Sep-16 12:14 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Kevin Marois12-Sep-16 12:32
professionalKevin Marois12-Sep-16 12:32 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Dave Kreskowiak12-Sep-16 13:09
mveDave Kreskowiak12-Sep-16 13:09 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Kevin Marois12-Sep-16 13:17
professionalKevin Marois12-Sep-16 13:17 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Eddy Vluggen12-Sep-16 12:09
professionalEddy Vluggen12-Sep-16 12:09 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Kevin Marois12-Sep-16 12:30
professionalKevin Marois12-Sep-16 12:30 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Dave Kreskowiak12-Sep-16 13:09
mveDave Kreskowiak12-Sep-16 13:09 
GeneralRe: Windows Shell - Prevent Folder & File Operations Pin
Eddy Vluggen13-Sep-16 3:22
professionalEddy Vluggen13-Sep-16 3:22 
AnswerRe: Windows Shell - Prevent Folder & File Operations Pin
Bernhard Hiller12-Sep-16 21:22
Bernhard Hiller12-Sep-16 21:22 
AnswerRe: Windows Shell - Prevent Folder & File Operations Pin
Nathan Minier13-Sep-16 1:41
professionalNathan Minier13-Sep-16 1:41 
QuestionGetting Index Of Delimiters After A String Pin
MadDashCoder11-Sep-16 17:11
MadDashCoder11-Sep-16 17:11 
AnswerRe: Getting Index Of Delimiters After A String Pin
BillWoodruff11-Sep-16 19:31
professionalBillWoodruff11-Sep-16 19:31 
The first character after 'Sample1 will have an index equal to the length of 'Sample1, if you know that first search string will always have a [ after it, then you can just use that, else use 'IndexOf which will return the index of the first occurrence.

If you are sure that there is only one ] in the search string, you can just use 'IndexOf on the string.

If there could be multiple [ :
C#
int lastindexof = searchString.ToList().FindLastIndex(']');

«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

GeneralRe: Getting Index Of Delimiters After A String Pin
MadDashCoder11-Sep-16 19:56
MadDashCoder11-Sep-16 19:56 
GeneralRe: Getting Index Of Delimiters After A String Pin
BillWoodruff12-Sep-16 4:50
professionalBillWoodruff12-Sep-16 4:50 
AnswerRe: Getting Index Of Delimiters After A String Pin
OriginalGriff11-Sep-16 23:26
mveOriginalGriff11-Sep-16 23:26 
GeneralRe: Getting Index Of Delimiters After A String Pin
BillWoodruff12-Sep-16 5:05
professionalBillWoodruff12-Sep-16 5:05 
GeneralRe: Getting Index Of Delimiters After A String Pin
OriginalGriff12-Sep-16 5:09
mveOriginalGriff12-Sep-16 5:09 
AnswerRe: Getting Index Of Delimiters After A String Pin
#realJSOP12-Sep-16 8:49
professional#realJSOP12-Sep-16 8:49 
GeneralRe: Getting Index Of Delimiters After A String Pin
MadDashCoder13-Sep-16 8:02
MadDashCoder13-Sep-16 8:02 
Questioncompare two textboxes (string) - need help Pin
mar malaza11-Sep-16 1:04
mar malaza11-Sep-16 1:04 
GeneralRe: compare two textboxes (string) - need help Pin
harold aptroot11-Sep-16 1:41
harold aptroot11-Sep-16 1:41 
AnswerRe: compare two textboxes (string) - need help Pin
#realJSOP11-Sep-16 3:30
professional#realJSOP11-Sep-16 3:30 

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.