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. how to archive multiple inheritance in .net

how to archive multiple inheritance in .net

Scheduled Pinned Locked Moved C#
csharpc++comoophelp
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.
  • C Offline
    C Offline
    Chiman1
    wrote on last edited by
    #1

    I am working in a project implemented in COM (ATL)where , my class derives from app 12-14 classes. Now while implementing the same class in C#, i am facing problem (as C# not support multiple inheritance). Can you please provide me the ways we can archive multiple inheritance in .net.

    L A P 3 Replies Last reply
    0
    • C Chiman1

      I am working in a project implemented in COM (ATL)where , my class derives from app 12-14 classes. Now while implementing the same class in C#, i am facing problem (as C# not support multiple inheritance). Can you please provide me the ways we can archive multiple inheritance in .net.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      There are no multiple inheritance in C#. But this is the answer : http://www.c-sharpcorner.com/UploadFile/cbreakspear/MultipleInheritance11082005004843AM/MultipleInheritance.aspx[^]

      P 1 Reply Last reply
      0
      • C Chiman1

        I am working in a project implemented in COM (ATL)where , my class derives from app 12-14 classes. Now while implementing the same class in C#, i am facing problem (as C# not support multiple inheritance). Can you please provide me the ways we can archive multiple inheritance in .net.

        A Offline
        A Offline
        Abhinav S
        wrote on last edited by
        #3

        Using extension methods could be an alternative approach. Good info here - http://msdn.microsoft.com/en-us/vcsharp/bb625996.aspx[^].

        1 Reply Last reply
        0
        • C Chiman1

          I am working in a project implemented in COM (ATL)where , my class derives from app 12-14 classes. Now while implementing the same class in C#, i am facing problem (as C# not support multiple inheritance). Can you please provide me the ways we can archive multiple inheritance in .net.

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          It sounds like the old application was poorly designed, rewrite it. :-D

          1 Reply Last reply
          0
          • L Lost User

            There are no multiple inheritance in C#. But this is the answer : http://www.c-sharpcorner.com/UploadFile/cbreakspear/MultipleInheritance11082005004843AM/MultipleInheritance.aspx[^]

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            stancrm wrote:

            There are no multiple inheritance in C#.

            Correct.

            stancrm wrote:

            But this is the answer :

            No it isn't.

            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