Null reference error when using Reflector API

Moderator: Greg.Tillman

Null reference error when using Reflector API

Postby asua » Thu May 29, 2014 8:18 am

Hi
I was writing a code that give me all references of methods in a dll.
I added reflector.exe in my reference. But whenever I am running I am getting assemblyManager as null. My cfg file contains [AssemblyManager].
static void Main(string[] args)
{
ArrayList listMethods = new ArrayList();
try
{
IServiceProvider serviceProvider = new ApplicationManager(null,true);
IAssemblyManager assemblyManager = (IAssemblyManager)
serviceProvider.GetService(typeof(IAssemblyManager));

What am I doing wrong ?
Thanks
asua
 
Posts: 1
Joined: Thu May 29, 2014 8:10 am

Return to .NET Reflector 6 Community Forum

Who is online

Users browsing this forum: No registered users and 1 guest