Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int MatchesWith(object obj)
- {
- Company other = (Company)obj;
- Console.WriteLine(name +" has ");
- Console.WriteLine(other.name + " "+other.buyers.Where(buyer => buyer.StartsWith(name)).Count());
- if (other.name.ToLower().StartsWith(name.ToLower()) || other.buyers.Where(buyer => buyer.StartsWith(name)).Count() > 0)
- {
- return 0;
- }
- else
- {
- return CompareTo(obj);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement