J
Jordan S.
Using .NET 2.0 (C#) I'm writing a small app that will have a "Person" class
that exposes FirstName and LastName properties. At runtime, a "People"
collection will be populated with a few thousand "Person" objects.
I want to provide users with the ability to search for people by FirstName
and/or LastName.
My question: How can I enable users to search for people with the last name
of [for example] "De Leon". I cannot assume that my users know how to
correctly spell it - so they may be searching with or without the space
(i.e., searching for either "Deleon" or "De Leon").
What are some reasonable/acceptable ways I can search the collection? I'm
wanting to address at least the specifics issue of [spaces within the name].
Thanks!
that exposes FirstName and LastName properties. At runtime, a "People"
collection will be populated with a few thousand "Person" objects.
I want to provide users with the ability to search for people by FirstName
and/or LastName.
My question: How can I enable users to search for people with the last name
of [for example] "De Leon". I cannot assume that my users know how to
correctly spell it - so they may be searching with or without the space
(i.e., searching for either "Deleon" or "De Leon").
What are some reasonable/acceptable ways I can search the collection? I'm
wanting to address at least the specifics issue of [spaces within the name].
Thanks!