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
Another example that I think is related: null-coalesing operator at the end of a method chain:
// Without null coalescing, looks good (0.26.3)varmethod=target.DeclaringType!.GetMethod(ReplaceMethod,BindingFlags.Static|BindingFlags.NonPublic|BindingFlags.Public);// With null coalescing: additional indentation and needless breaks (0.26.3)varmethod=target.DeclaringType!.GetMethod(ReplaceMethod,BindingFlags.Static|BindingFlags.NonPublic|BindingFlags.Public)??thrownew($"Could not find method {ReplaceMethod} on {target.DeclaringType}");// Preferred formattingvarmethod=target.DeclaringType!.GetMethod(ReplaceMethod,BindingFlags.Static|BindingFlags.NonPublic|BindingFlags.Public)??thrownew($"Could not find method {ReplaceMethod} on {target.DeclaringType}");
This is CSharpier 0.20.0:
result1
andresult2
each look fine in isolation (however, see my comment in Possible indentation change for array initializers #658 regarding "the rectangle rule").result3
I believe follows a specific rule but appears to me inconsistent with bothresult1
andresult2
.result4
is inconsistent withresult2
andresult3
both, but arguably consistent withresult1
.result1
andresult2
are semantically equivalent, as isresult3
withresult4
.The text was updated successfully, but these errors were encountered: