Re: GetType question



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?


.



Relevant Pages

  • Re: GetType question
    ... I want: Lucky.Folder, FolderPlugin ... perhaps with an example of your desired output? ... assembly in format of full name, ... Me.GetTypegets me the fullname ...
    (microsoft.public.dotnet.languages.vb)
  • Re: "and me" vs. "and I"
    ... Can anyone clarify for me please? ... Statements not using this format are ungrammatical, and unfortunately, ... practice. ...
    (alt.usage.english)
  • Re: Another MicroLie
    ... 1.Ad-Ware and/or SpyBot?? ... 4.DVR-MS format ... 5.To clarify the link for CWShredder Update ...
    (microsoft.public.windowsxp.general)
  • Re: auto-fill Contacts
    ... Unclear post. ... Clarify what you want to do and in what format the information currently ...
    (microsoft.public.outlook)
  • Re: OT: a problem about text manipulation
    ... I am looking for an automatic way of transforming my text file into ... another one with the format ... Something seems funky there. ... The desired output doesn't match the ...
    (Fedora)