Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get list of the classes in casual assembly
Message
From
19/03/2010 07:28:14
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russia
 
 
To
17/03/2010 08:02:08
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01453908
Message ID:
01455679
Views:
38
Gregory
I think the code
 public string GetMyAssName()
        {
            string vbTab = "   ";
          
            foreach (Assembly ass in AppDomain.CurrentDomain.GetAssemblies())
            {
                vbTab = vbTab + ass.FullName;
            }

            return vbTab;
        }
will give to me all available assemblies ( for example , as you said
@"System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
)

but it gave me blank string, when I called my class dll in different testing program
   const string ASSEMBLY_SYSTEM = "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";


        //const string ENCODING_NAME = "utf-8";
        const string ENCODING_NAME = "windows-1251";
        
        static void Main(string[] args)
        {
			try
			{
                MyNetClass.Myclass myDot = new   MyNetClass.Myclass ();
               string  sprp = " " ;
               sprp = myDot.GetMyAssName();
  Console.WriteLine(sprp);
This part of the code shows me black blank screen
and no errors , Building project MyNetClass as class dll library also was ok and has no errors
Whet I am trying to undestand, how NET reflector could be inside code
MVP-2006-2011, PHD in Math and Physics ,
host of www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.
Previous
Reply
Map
View

Click here to load this message in the networking platform