S2219 As reported in this community thread
Description
Constant used for pattern matching cannot be replaced by simple null check.
Repro steps
public class Repro
{
public string StringProperty { get; set; }
public const string Example = "Lorem Ipsum";
public void Go(Repro value)
{
bool result = value.StringProperty is Example;
}
}