mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
18 lines
316 B
C#
18 lines
316 B
C#
using System;
|
|
|
|
class Good
|
|
{
|
|
private int id;
|
|
|
|
public Good(int Id) { this.id = Id; }
|
|
|
|
public override bool Equals(object other)
|
|
{
|
|
if (other is Good b && b.GetType() == typeof(Good))
|
|
return this.id == b.id;
|
|
return false;
|
|
}
|
|
|
|
public override int GetHashCode() => id;
|
|
}
|