how can i get the class name with system.reflection?

Posted on 2009-04-22
Last Modified: 2013-12-17
hello experts,

how can i recover the class name,
i'd like to print as follow.
error : class->method

i found out how to display the method with

but how to recover the class name ,

thanks in advance.
Question by:toshi_
    LVL 53

    Expert Comment

    Reflection in C# - List of Class Name, Method Name
    LVL 53

    Accepted Solution

    Assembly asm = Assembly.Load("ConsoleApplication1.DenemeClassLibrary");
                Type[] types = asm.GetTypes();
                foreach (Type t in types)
                    if (t.BaseType == typeof(MarshalByRefObject))
                        Console.WriteLine("Marshal By ref {0} ",t.FullName);
                        Console.WriteLine("Not Marshal By ref {0}",t.FullName);

    Author Comment

    thank you Dhaest,
    the i found it on my class gave me what i was looking for,
    i didn't need reflection ;o)

    thank you , you got the points.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now