Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Building a list of current solution types in design time

Building a list of current solution types in design time

Scheduled Pinned Locked Moved C#
questionvisual-studiocsharpdesigntutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    beatles1692
    wrote on last edited by
    #1

    Hi I know that there is a straightforward way to load an assembly in run-time using Assembly.Load and then we can get its types using its GetTypes method. But that solution has some problems, for example if you try to load an assembly in another directory rather than your project directory (and the assembly has some dependencies to other assemblies) you will get an exception saying it can not load the assembly or one of its dependencies. I'm working on a design time tool and I want to show a list of types that are included in current solution in a UITypeEditor(Something like a tool that Workflow designer has when you want to pick a ExternalDataExchange).Since this list is being build in design time I just need the name of types(and may be to check if they have some attributes attached to them) and I don't want to load them. So here I have a question to ask.How can I get a list of type names of classes in current solution in Visual Studio IDE? Thank you

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups