controlflow / resharper-heapview

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

Boxing is not highlighted #63

Closed sebas77 closed 1 year ago

sebas77 commented 5 years ago

Hi,

public class C {
  public interface INeedEGID {
    int ID { get; set; }
  }
  public struct Test : INeedEGID {
    public int ID { get; set; }
  }
  public void M() {
    var initializer = new Test();
    var needEgid = ((INeedEGID) initializer);
    initializer = (Test) needEgid;
  }
}

in this code

      var needEgid = ((INeedEGID) initializer);

the boxing for the cast of a structure to an interface won't be highlighted in any way.

Version: RD-191.7141.355 Timezone: Europe/London Evaluation: false Environment: RD-191.7141.355, JRE 1.8.0_202-release-1483-b58x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1080x1920, 1920x1080, 1920x1080 Unity: 2019.1.6f1

sebas77 commented 5 years ago

nobody acknowledges this? Because I have other similar issues and I will report them if you are interested.

sebas77 commented 4 years ago
         public void Test3()
         {
             void Code()
             {
                 void Action()  {}

                 TestDelegate(Action);
             }

             Code();
         }
controlflow commented 1 year ago

Both cases should be correct now, thanks for reporting. image image