You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Var pattern is var o can be used only where variable declarations would require additional nesting.
if(something.Something() is var value // Noncompliant, can be extracted to var value=
&& value.Name == name
&& value.Count > min)
if(someting.Prerequisite() is { } prerequisite
&& something.Something() is var value // Compliant
&& value.Name == name
&& value.Count > min)
var value = something.Something(); // Compliant
if(value.Name == name
&& value.Count > min)
public object Method() =>
something.Something() is var value // Compliant
&& value.Name == name
&& value.Count > min)
The text was updated successfully, but these errors were encountered:
Coding style:
The text was updated successfully, but these errors were encountered: