Use pattern matching (not operator)
MODIFY
WalletWasabi.Fluent.Generators/AutoNotifyGenerator.cs
WalletWasabi.Fluent.Generators/AutoNotifyGenerator.cs
@@ -54,7 +54,7 @@ namespace WalletWasabi.Fluent
context.AddSource("AccessModifier", SourceText.From(ModifierText, Encoding.UTF8));
context.AddSource("AutoNotifyAttribute", SourceText.From(AttributeText, Encoding.UTF8));
- if (!(context.SyntaxReceiver is SyntaxReceiver receiver))
+ if (context.SyntaxReceiver is not SyntaxReceiver receiver)
{
return;
}

MODIFY
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
@@ -90,7 +90,7 @@ namespace WalletWasabi.Fluent
{
context.AddSource("NavigationMetaDataAttribute", SourceText.From(AttributeText, Encoding.UTF8));
- if (!(context.SyntaxReceiver is SyntaxReceiver receiver))
+ if (context.SyntaxReceiver is not SyntaxReceiver receiver)
{
return;
}

MODIFY
WalletWasabi.Fluent.Generators/PropertyGenerator.cs
WalletWasabi.Fluent.Generators/PropertyGenerator.cs
@@ -69,7 +69,7 @@ namespace WalletWasabi.Fluent
}
context.AddSource("PropertyAttribute", SourceText.From(AttributeText, Encoding.UTF8));
- if (!(context.SyntaxReceiver is SyntaxReceiver receiver))
+ if (context.SyntaxReceiver is not SyntaxReceiver receiver)
{
return;
}

MODIFY
WalletWasabi.Fluent.Generators/StaticViewLocatorGenerator.cs
WalletWasabi.Fluent.Generators/StaticViewLocatorGenerator.cs
@@ -32,7 +32,7 @@ namespace WalletWasabi.Fluent
{
context.AddSource("StaticViewLocatorAttribute", SourceText.From(AttributeText, Encoding.UTF8));
- if (!(context.SyntaxReceiver is SyntaxReceiver receiver))
+ if (context.SyntaxReceiver is not SyntaxReceiver receiver)
{
return;
}

Use pattern matching (not operator)