Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1038573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:59:31+00:00 2026-05-16T14:59:31+00:00

I have a few dll files and I want to export all public classes

  • 0

I have a few dll files and I want to export all public classes with methods separated by namespaces (export to html / text file or anything else I can ctrl+c/v in Windows 🙂 ).

I don’t want to create documentation or merge my dlls with xml file. I just need a list of all public methods and properties.

What’s the best way to accomplish that?

TIA for any answers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:59:32+00:00Added an answer on May 16, 2026 at 2:59 pm

    Very rough around the edges, but try this for size:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Reflection;
    
    namespace GetMethodsFromPublicTypes
    {
        class Program
        {
            static void Main(string[] args)
            {
                var assemblyName = @"FullPathAndFilenameOfAssembly";
    
                var assembly = Assembly.ReflectionOnlyLoadFrom(assemblyName);
    
                AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += new ResolveEventHandler(CurrentDomain_ReflectionOnlyAssemblyResolve);
    
                var methodsForType = from type in assembly.GetTypes()
                                     where type.IsPublic
                                     select new
                                         {
                                             Type = type,
                                             Methods = type.GetMethods().Where(m => m.IsPublic)
                                         };
    
                foreach (var type in methodsForType)
                {
                    Console.WriteLine(type.Type.FullName);
                    foreach (var method in type.Methods)
                    {
                        Console.WriteLine(" ==> {0}", method.Name);
                    }
                }
            }
    
            static Assembly CurrentDomain_ReflectionOnlyAssemblyResolve(object sender, ResolveEventArgs args)
            {
                var a = Assembly.ReflectionOnlyLoad(args.Name);
                return a;
            }
        }
    }
    

    Note: This needs refinement to exclude property getters/setters and inherited methods, but it’s a decent starting place

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a managed c++ dll with few managed classes that in turn call
I have a few Assemblies: MyInterfaces.dll, MyImplementations.dll, MyTestApp.exe In my config I do the
I have C# project in which I am using Microsoft.SqlServer.Management.Smo, Microsoft.SqlServer.batchparser.dll and few other
I have a simple application that loads an unmanaged dll and passes a few
I have a Java Application which has to load an DLL with a few
I have few text fields like SSN , phone number and email id. I
How can i store multiple .ico files into a .DLL file that can be
We have a dll file; let's say X.DLL. We are now writing another DLL,
I have 3 C++ structs as well as two methods and I want to
I have a solution file comprising of 15 projects using a few third party

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.