Case Insensitive string comparison
- From: anonieko@xxxxxxxxxxx
- Date: 2 Mar 2007 09:16:48 -0800
Is this a long way to compare strings ignoring the case?
if ( string.Compare(wsUri.Host, "localHost",
System.StringComparison.OrdinalIgnoreCase) == 0 )
{
// etc.
}
.
- Follow-Ups:
- Re: Case Insensitive string comparison
- From: Jon Skeet [C# MVP]
- Re: Case Insensitive string comparison
- Prev by Date: Re: What is the best way to stop a Socket.BeginAccept call?
- Next by Date: Re: Safely Raising Events in Multithreaded app.
- Previous by thread: How to specify a default proxy in ASP.NET application
- Next by thread: Re: Case Insensitive string comparison
- Index(es):