[Mono-devel-list] Module Properties : Name FullyQualifiedName ScopeName

Cezar Nasui cezar.nasui at polymtl.ca
Mon Nov 3 21:35:05 EST 2003


Hi,

I tried the following code to get just the name of a module but it
returns the FullyQualifiedName, which means always returns the name with
the path attached. 
So from the all 3 properties of Module, ScopeName returns just the name,
the two others return path+name.

Is this a bug for Name or just me missing something.


This is the code I run:

public ArrayList GetModulesList()
{
		
	ArrayList ModulesList = new ArrayList();
	Module [] modules = assembly.GetModules();
	foreach(Module m in modules)
	{
		ModulesList.Add(m.Name);
	}
	return ModulesList;
}

Cezar




More information about the Mono-devel-list mailing list