mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
16 lines
266 B
C#
16 lines
266 B
C#
using System;
|
|
|
|
class Bad
|
|
{
|
|
private int id;
|
|
|
|
public Bad(int Id) { this.id = Id; }
|
|
|
|
public override bool Equals(object other)
|
|
{
|
|
if (other is Bad b && b.GetType() == typeof(Bad))
|
|
return this.id == b.id;
|
|
return false;
|
|
}
|
|
}
|