Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
AnswerRe: Resizing 2 dimensional array Pin
Guffa5-Feb-08 7:26
Guffa5-Feb-08 7:26 
GeneralCreateProcess as user error 1314. Pin
PhrankBooth5-Feb-08 4:07
PhrankBooth5-Feb-08 4:07 
GeneralRe: CreateProcess as user error 1314. Pin
TJoe5-Feb-08 4:14
TJoe5-Feb-08 4:14 
Generalopen excel with addins Pin
arkiboys5-Feb-08 3:52
arkiboys5-Feb-08 3:52 
Generalreading HTML file and Append text Pin
gottimukkala5-Feb-08 3:47
gottimukkala5-Feb-08 3:47 
GeneralRe: reading HTML file and Append text Pin
TJoe5-Feb-08 4:36
TJoe5-Feb-08 4:36 
GeneralRe: reading HTML file and Append text Pin
gottimukkala5-Feb-08 4:51
gottimukkala5-Feb-08 4:51 
GeneralRe: reading HTML file and Append text Pin
TJoe5-Feb-08 4:56
TJoe5-Feb-08 4:56 
Are you using .Net 1.x? Contains is supported in .NET Framework 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0.

But you can use String.IndexOf[^], like you had before. But you should be checking for -1, because 0 and all positive integers indicates that it found the string.

if (-1 == line.IndexOf(pubPath)) {
    // ... other code ...
}


Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: reading HTML file and Append text Pin
gottimukkala5-Feb-08 5:20
gottimukkala5-Feb-08 5:20 
GeneralInteger Arithmetic Registers Pin
Skippums5-Feb-08 3:45
Skippums5-Feb-08 3:45 
GeneralRe: Integer Arithmetic Registers Pin
TJoe5-Feb-08 4:29
TJoe5-Feb-08 4:29 
GeneralRe: Integer Arithmetic Registers Pin
Skippums5-Feb-08 8:22
Skippums5-Feb-08 8:22 
GeneralRe: Integer Arithmetic Registers Pin
Ennis Ray Lynch, Jr.5-Feb-08 9:55
Ennis Ray Lynch, Jr.5-Feb-08 9:55 
GeneralPlease advice control which maps two lists Pin
vgrigor15-Feb-08 2:50
vgrigor15-Feb-08 2:50 
AnswerRe: Please advice control which maps two lists Pin
TJoe5-Feb-08 3:19
TJoe5-Feb-08 3:19 
GeneralRe: Please advice control which maps two lists Pin
vgrigor15-Feb-08 4:42
vgrigor15-Feb-08 4:42 
GeneralRe: Please advice control which maps two lists Pin
TJoe5-Feb-08 5:02
TJoe5-Feb-08 5:02 
GeneralRe: Please advice control which maps two lists Pin
vgrigor16-Feb-08 22:36
vgrigor16-Feb-08 22:36 
QuestionCode for Displaying Word document in my aspx page. Pin
Bhavesh Patel5-Feb-08 2:44
Bhavesh Patel5-Feb-08 2:44 
GeneralRe: Code for Displaying Word document in my aspx page. Pin
Not Active5-Feb-08 3:30
mentorNot Active5-Feb-08 3:30 
Generalinstall Pin
arkiboys5-Feb-08 2:08
arkiboys5-Feb-08 2:08 
AnswerRe: install Pin
TJoe5-Feb-08 2:12
TJoe5-Feb-08 2:12 
GeneralRe: install Pin
arkiboys5-Feb-08 2:36
arkiboys5-Feb-08 2:36 
Generalapp config file for the windows services Pin
M. J. Jaya Chitra5-Feb-08 2:06
M. J. Jaya Chitra5-Feb-08 2:06 
QuestionRe: app config file for the windows services Pin
TJoe5-Feb-08 4:22
TJoe5-Feb-08 4:22 

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.