Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Use String.StartsWith(value) with incomplete value string
Milan Spinka
Aug 6 2015 12:45 PM
400
Reply
Hi all,
I would like to know how to use the
bool String.StartsWith(string value)
like this:
void
Main()
{
int
random;
//this is an int that will change randomly
string
_uStr =
"The random int is currently "
+ random.ToString() +
" and this is another text"
;
if
(_uStr.StartsWith (
"The random int is currently
something
and this"
))
{
//execute something
}
}
My question: Is there a way of replacing
something
to
ignore several characters
in the string?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How can I get the MIME type from a file without is extension
Image clean Using C#.Net