Quantcast
Channel: Compare first & last name (C#) - Stack Overflow
Browsing index pages (2 articles)
↧

Compare first & last name (C#)

I have first name and last name in database and same fields, coming from DtoI need to check if those fields is differsI wrote code like thisclient.* - values from databaseinput.* - values from DTOvar...

View Article


Answer by Prime for Compare first & last name (C#)

Add this method somewherestatic bool CompareNameField(string data, string input) { return data.Trim().Equals(input.Trim(), StringComparison.InvariantCultureIgnoreCase);}Change your comparison code to...

View Article

Browsing index pages (2 articles)


Latest Images