2 references to TryGetLiteralValue
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\RemoveRedundantEquality\AbstractRemoveRedundantEqualityDiagnosticAnalyzer.cs (2)
95
if (
TryGetLiteralValue
(rightOperand) is bool rightBool)
101
else if (
TryGetLiteralValue
(leftOperand) is bool leftBool)