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. Accessing a method from one project in another

Accessing a method from one project in another

Scheduled Pinned Locked Moved C#
question
4 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.
  • D Offline
    D Offline
    Darkness84
    wrote on last edited by
    #1

    I am trying to create a windows service and I need to access a method from another project. The windows service project and the project containing the required method are in the same solution. Is it possible to do this? If so how would I go about it?

    N A J 3 Replies Last reply
    0
    • D Darkness84

      I am trying to create a windows service and I need to access a method from another project. The windows service project and the project containing the required method are in the same solution. Is it possible to do this? If so how would I go about it?

      N Offline
      N Offline
      NanaAM
      wrote on last edited by
      #2

      add reference of the proj which you want to use

      Nana

      1 Reply Last reply
      0
      • D Darkness84

        I am trying to create a windows service and I need to access a method from another project. The windows service project and the project containing the required method are in the same solution. Is it possible to do this? If so how would I go about it?

        A Offline
        A Offline
        Ashvin Gunga
        wrote on last edited by
        #3

        and make sure that you have used teh appropriate access modifiers for the method..so that it can be accessible in other projects...

        Ashvin Gunga

        1 Reply Last reply
        0
        • D Darkness84

          I am trying to create a windows service and I need to access a method from another project. The windows service project and the project containing the required method are in the same solution. Is it possible to do this? If so how would I go about it?

          J Offline
          J Offline
          Jeeva Jose
          wrote on last edited by
          #4

          First u create a shared assembly.u can communicate with different application. u try to create some interface u can solve the problem

          Continue...

          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