using System.Collections.Generic;

namespace XmlForDB;

public class RunTitleInfoComparer : IEqualityComparer<RunTitleInfo>
{
	public bool Equals(RunTitleInfo x, RunTitleInfo y)
	{
		return (string.Compare(x.TitleName, y.TitleName, ignoreCase: true) == 0 && string.Compare(x.TitleValue, y.TitleValue, ignoreCase: true) == 0) ? true : false;
	}

	public int GetHashCode(RunTitleInfo obj)
	{
		return obj.TitleName.ToLower().GetHashCode() + obj.TitleValue.ToLower().GetHashCode();
	}
}
