V
V
Vladislav2013-08-26 00:07:18
C++ / C#
Vladislav, 2013-08-26 00:07:18

Plugin for highlighting boxing/unboxing?

We are looking for a plugin for highlighting type packing / unpacking operations in the code.

Example:

interface ISomething {}
struct Something {}
static class Ext { public static void DoSomethingWithSomething(this ISomething sth){} }
//…
var mySomething = new Something();
mySomething. DoSomethingWithSomething ();

I would like to see the underline from the example in the code editor with a note that the type will be boxed.

I was looking for such a plugin both for the resharper and for the studio as a whole, but did not find it (

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Razario777, 2013-08-27
@Razario777

You can write your own, although code analysis is not an easy task. Alternatively, you can offer JetBrains to implement such a feature, perhaps they will do it in a few months, although how relevant this is for the bulk of developers is a question.

M
m08pvv, 2013-08-27
@m08pvv

You can use ildasm to search for box / unbox operations with reference to lines of code.
Well, or see how you can access the IL code from the plugin and write.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question