mirror of
https://github.com/github/codeql.git
synced 2026-03-27 09:48:16 +01:00
21 lines
407 B
C#
21 lines
407 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
public class Test
|
|
{
|
|
public void M()
|
|
{
|
|
var h = new Hashtable();
|
|
h.Add(this, null); // BAD
|
|
var d = new Dictionary<Test, bool>();
|
|
d.Add(this, false); // BAD
|
|
}
|
|
|
|
public override bool Equals(object other)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// semmle-extractor-options: /r:System.Runtime.Extensions.dll
|