Re: GetType question
- From: "Kevin Westhead" <mapson.mapson@xxxxxxxxxxxxx>
- Date: Tue, 25 Apr 2006 18:48:01 +0100
Can you clarify what Type.AssemblyQualifiedName is giving you that you don't
want, perhaps with an example of your desired output?
If you're only interested in the simple name of the assembly then you could
try the following (not compiled):
Dim t As Type = Me.GetType()
Dim s As String = String.Format("{0}, {1}", t.FullName,
t.Assembly.GetName().Name)
--
Kevin Westhead
"Craig Buchanan" <name@xxxxxxxxxxx> wrote in message
news:euNB8DIaGHA.1560@xxxxxxxxxxxxxxxxxxxxxxx
I would like to have a string representation of my classes type and
assembly in format of full name, assembly.
Me.GetType() gets me the fullname
Me.GetType().AssemblyQualifiedName gets me much more than i want.
is there a better way?
.
- Follow-Ups:
- Re: GetType question
- From: Craig Buchanan
- Re: GetType question
- References:
- GetType question
- From: Craig Buchanan
- GetType question
- Prev by Date: Re: Interesting Results In VB.Net
- Next by Date: Re: Interesting Results In VB.Net
- Previous by thread: GetType question
- Next by thread: Re: GetType question
- Index(es):
Relevant Pages
|
|