Reputation: 3033
Is there a tool that can get the full qualified name from types in assembly?
i know how to construct the full qualified name, but i need something that loads the assembly like reflector for example and take the fullqualified name from their types.
Upvotes: 0
Views: 195
Reputation: 1038890
You may try the AssemblyQualifiedName property:
class Program
{
static void Main()
{
var types = Assembly.LoadFrom(@"c:\work\Foo.dll").GetTypes();
foreach (var type in types)
{
Console.WriteLine(type.AssemblyQualifiedName);
}
}
}
Upvotes: 1
Reputation: 37950
Assembly.Load("YourAssemblyName").GetTypes().Select(t => t.AssemblyQualifiedName)
Upvotes: 4