controlflow / resharper-heapview

ReSharper Heap Allocations Viewer plugin
MIT License
303 stars 28 forks source link

C# 7.0 boxing in deconstruction declarations/assignment #47

Closed controlflow closed 4 years ago

controlflow commented 7 years ago
void Deconstruct(this int x, out int a, out int b) => a = b = x;
(object a, object b) = 42; // boxing 2x
(a, b) = 43; // boxing 2x
controlflow commented 4 years ago

Fixed in trunk recently