Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Where is Project Name (as it's used in user types)?

$
0
0

I have a generic list of objects.  I can determine the type of each object in the list using code such as this ...

For Each tm As Object In TransMap
  MsgBox("type of object is """ & tm.GetType.ToString & """")
Next

For system types I get, e.g., System.String, but for my own types I get

long_project_name_but_with_underscores_replacing_blanks.MyTypeName

Is there a member of some class which would give me my project name as it appears above (i.e. with the  underscores)?

(My concern being that someday I might cut and paste a huge of code from this project into a new project and i'd like it to work with having to find and change the project name part of type names.)

Thanks,  Bob



Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>