resharper-heapview icon indicating copy to clipboard operation
resharper-heapview copied to clipboard

Boxing is not highlighted

Open sebas77 opened this issue 6 years ago • 2 comments

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 avatar Jun 19 '19 16:06 sebas77

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

sebas77 avatar Jun 28 '19 17:06 sebas77

         public void Test3()
         {
             void Code()
             {
                 void Action()  {}

                 TestDelegate(Action);
             }
             
             Code();
         }

sebas77 avatar Dec 15 '19 15:12 sebas77

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

controlflow avatar Dec 28 '22 19:12 controlflow