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. NativeMethods is inaccesible due to its protection lavel

NativeMethods is inaccesible due to its protection lavel

Scheduled Pinned Locked Moved C#
helpquestion
3 Posts 3 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
    amit_83
    wrote on last edited by
    #1

    when i am using NativeMethods, then i am seeing fallowing error : NativeMethods is inaccesible due to its protection lavel. Am i missing any assambly reference?.

    amit

    P I 2 Replies Last reply
    0
    • A amit_83

      when i am using NativeMethods, then i am seeing fallowing error : NativeMethods is inaccesible due to its protection lavel. Am i missing any assambly reference?.

      amit

      P Offline
      P Offline
      Paul Selormey
      wrote on last edited by
      #2

      Where did you find the NativeMethods? Best regards, Paul.

      Jesus Christ is LOVE! Please tell somebody.

      1 Reply Last reply
      0
      • A amit_83

        when i am using NativeMethods, then i am seeing fallowing error : NativeMethods is inaccesible due to its protection lavel. Am i missing any assambly reference?.

        amit

        I Offline
        I Offline
        Igor Velikorossov
        wrote on last edited by
        #3

        if you've trying to use NativeMethods from BLC then you're getting the error correctly for all of those are marked as "internal". Hence you can't access them directly. You can always cheat and use Reflection or simply cut n'paste the code from the Reflector....

        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