How to communicate methods on different applications sharing classes?

Last post 07-02-2009 4:47 AM by vivek_iit. 1 replies.

Sort Posts:

  • How to communicate methods on different applications sharing classes?

    06-28-2009, 3:25 AM
    • Member
      point Member
    • lsanchez0305
    • Member since 06-13-2009, 9:08 PM
    • Posts 5

    I have 2 applications, App A and App B.

    App A has class CLASS1 with properties and methods

    App B has class CLASS2 which has different methods that uses CLASS1

    I have no problem creating a reference of the namespace that has CLASS1 on CLASS2 on the BLL of App B

    But I also use CLASS1 on the presentation layer of App B, is there a way to pass all the properties and methods of CLASS1 to the presentation layer of App B using CLASS2 or any other way without having to rewrite the CLASS1 on the BLL of App B again?

    Thanks, help must appreciate it.

  • Re: How to communicate methods on different applications sharing classes?

    07-02-2009, 4:47 AM
    Answer
    • All-Star
      17,710 point All-Star
    • vivek_iit
    • Member since 06-18-2006, 2:13 PM
    • New Delhi
    • Posts 3,170
    • TrustedFriends-MVPs

    It looks like you might need to change your architecture. Since AppA and AppB are different applications and need related classes (class 1 and class2), it is best to create a separate class library project having both these classes in it and then reference this project in AppA and AppB.

    This way you can use both the classes in both the projects without needing to rewrite them.

    HTH,

    Vivek

    CodeASP.NET Community

    Please mark the most helpful reply/replies as "Answer".
Page 1 of 1 (2 items)