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. recognise assembly as managed code

recognise assembly as managed code

Scheduled Pinned Locked Moved C#
5 Posts 4 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.
  • A Offline
    A Offline
    Aryadip
    wrote on last edited by
    #1

    Hi, can anybody tell me the way how I can determine wheather an assembly is managed or not programatically. I need to load the assembly at runtime and then need to dertermine wheather its managed or unmanaged. thanks in advance, regards, Aryadip. Cheers !! and have a Funky day !!

    C M H 3 Replies Last reply
    0
    • A Aryadip

      Hi, can anybody tell me the way how I can determine wheather an assembly is managed or not programatically. I need to load the assembly at runtime and then need to dertermine wheather its managed or unmanaged. thanks in advance, regards, Aryadip. Cheers !! and have a Funky day !!

      C Offline
      C Offline
      CWIZO
      wrote on last edited by
      #2

      If it is not managed, you will get an exception. Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      A 1 Reply Last reply
      0
      • C CWIZO

        If it is not managed, you will get an exception. Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

        A Offline
        A Offline
        Aryadip
        wrote on last edited by
        #3

        thanks man... i guess this will work. regards, Aryadip. Cheers !! and have a Funky day !!

        1 Reply Last reply
        0
        • A Aryadip

          Hi, can anybody tell me the way how I can determine wheather an assembly is managed or not programatically. I need to load the assembly at runtime and then need to dertermine wheather its managed or unmanaged. thanks in advance, regards, Aryadip. Cheers !! and have a Funky day !!

          M Offline
          M Offline
          Mike Dimmick
          wrote on last edited by
          #4

          From the horse's mouth: http://blogs.msdn.com/suzcook/archive/2004/03/17.aspx[^] Stability. What an interesting concept. -- Chris Maunder

          1 Reply Last reply
          0
          • A Aryadip

            Hi, can anybody tell me the way how I can determine wheather an assembly is managed or not programatically. I need to load the assembly at runtime and then need to dertermine wheather its managed or unmanaged. thanks in advance, regards, Aryadip. Cheers !! and have a Funky day !!

            H Offline
            H Offline
            Heath Stewart
            wrote on last edited by
            #5

            It you'd like an easy way to determine if something is an assembly in Windows Explorer (I know this isn't what you're looking for, but you might like it anyway), see my free shell extension on this site - with source included - Shell Extensions for .NET Assemblies[^]. A couple column providers are also provided to custom a detailed view in Windows Explorer. There's also code in there that shows how you determine if an executable is an assembly or not by navigating through the virtual tables in the PE/COFF header. There is a managed way to do this as well, but I can't seem to find it.

            Microsoft MVP, Visual C# My Articles

            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