We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a22550 commit a1da4f3Copy full SHA for a1da4f3
snippets/csharp/programming-guide/discards/discard-pattern2.cs
@@ -21,7 +21,7 @@ private static void ProvidesFormatInfo(object obj)
21
Console.Write("A null object reference: ");
22
Console.WriteLine("Its use could result in a NullReferenceException");
23
}
24
- else if (obj is var _)
+ else
25
Console.WriteLine($"Some object type without format information");
26
27
0 commit comments