C# compare method

  • Thread starter Thread starter C# newbie
  • Start date Start date
C

C# newbie

Hi Group,

Is there any method in C# search to ingnore the different between some
data which are "same in concept" but different in "the way are stored" ?
Let's say I'm doing a search against an xml data item like :

"What is your name?" but it's saved as "what is your name?"

Any idea?

Thanks in advance
Newbie
 
Have you checked out the Regex class yet? It's the DotNet version of
regular expressions. They handle situations such as what you want to do.

Chris R.
 
Is there any method in C# search to ignore the different between some
data which are "same in concept" but different in "the way are stored" ?

When you say "data", how generically are you speaking? Do you really
only care about strings, or do you want a more general answer.

To implement "same in concept" between two instances of your own
classes, You've want to implement the CompareTo method for that class.

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)
news:%[email protected]...
 
no, i'm talking about strings.


James Curran said:
When you say "data", how generically are you speaking? Do you really
only care about strings, or do you want a more general answer.

To implement "same in concept" between two instances of your own
classes, You've want to implement the CompareTo method for that class.

--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top