private string firstName, secondName, thirdName;
private float resultValue;
public User()
{
}
public User(string firstName, string secondName, string thirdName, float resultValue)
{
this.FirstName = firstName;
this.SecondName = secondName;
this.ThirdName = thirdName;
this.ResultValue = resultValue;
}
public float ResultValue
{
get => resultValue;
set => resultValue = value;
}
public string FirstName
{
get => firstName;
set => firstName = value;
}
public string SecondName
{
get => secondName;
set => secondName = value;
}
public string ThirdName
{
get => thirdName;
set => thirdName = value;
}
public static bool operator ==(User a, User b)
{
if (a.FirstName == b.FirstName && a.SecondName == b.SecondName && a.ThirdName == b.ThirdName)
{
return true;
}
else return false;
}
public static bool operator !=(User a, User b)
{
if (a.FirstName != b.FirstName && a.SecondName != b.SecondName && a.ThirdName != b.ThirdName)
{
return false;
}
else return true;
}
public override int GetHashCode()
{
return 0;
}
public override bool Equals(object o)
{
return true;
}