roslynator icon indicating copy to clipboard operation
roslynator copied to clipboard

Suggestion: Simplify ValueTuple.Create

Open Grauenwolf opened this issue 5 years ago • 0 comments

Calls to ValueTuple.Create can be simplified to just parens.

Example:

m_Base.TryGetValue(ValueTuple.Create(key1, key2), out value);
return m_Base.Remove(ValueTuple.Create(key1, key2));

Simplified version

m_Base.TryGetValue((key1, key2), out value);
return m_Base.Remove((key1, key2));

Grauenwolf avatar Oct 04 '19 03:10 Grauenwolf