e: How to extract full type name from assembly qualified name
- From: "Mythran" <kip_potter@xxxxxxxxxxx>
- Date: Tue, 12 Jun 2007 13:42:20 -0700
"John Brown" <no_spam@xxxxxxxxxxx> wrote in message news:#QfeghQrHHA.2368@xxxxxxxxxxxxxxxxxxxxxxx
Hi there,
Does anyone know how to extract the full type name ("namespace.type") from an assembly qualified name. Thanks.
The following works in v1.1 (And should work in all later versions and possibly even earlier one too):
string qualType =
@"System.String, mscorlib, Version=2.0.0.0, " +
@"Culture=neutral, PublicKeyToken=b77a5c561934e089";
Type t = Type.GetType(qualType, false);
if (t == null) {
Console.WriteLine("Invalid qualified type string.");
return;
}
Console.WriteLine(t.FullName);
HTH :)
Mythran
.
- References:
- How to extract full type name from assembly qualified name
- From: John Brown
- How to extract full type name from assembly qualified name
- Prev by Date: Re: Tooltip only shows once
- Next by Date: Udp server receives too much data
- Previous by thread: Re: How to extract full type name from assembly qualified name
- Next by thread: Datagridview columns keep appearing
- Index(es):