Check is type using in assembly or not

9 views
Skip to first unread message

Alex B

unread,
Jun 18, 2011, 9:57:40 AM6/18/11
to mono-cecil
Hi,

How to check if type is using in assembly?

Alex

unread,
Jun 18, 2011, 10:01:00 AM6/18/11
to mono-...@googlegroups.com
Hi,

Do you mean whether a type is used at all within a particular
assembly? If so, you'll have to do quite a bit of inspection:
Inheritance, custom attributes, generic parameters, fields, method
parameters/return types, locals, instructions, etc...

I don't know if there's any 'convenient' way to do this currently.

Regards,
Alex

2011/6/18 Alex B <alex...@gmail.com>:


> Hi,
>
> How to check if type is using in assembly?
>

> --
> --
> mono-cecil

Gábor Kozár

unread,
Jun 18, 2011, 10:36:25 AM6/18/11
to mono-...@googlegroups.com
There is no built-in function for this, you have to do it the hard way, as Alex mentioned.

2011/6/18 Alex <xtzg...@gmail.com>
--
--
mono-cecil

Reply all
Reply to author
Forward
0 new messages