Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6213367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:41:01+00:00 2026-05-24T06:41:01+00:00

I am trying to work out why this works Public Interface IFullService Inherits ISerializableObjectLayerService,

  • 0

I am trying to work out why this works

Public Interface IFullService
    Inherits ISerializableObjectLayerService, IVersionService
    <OperationContract()>
    Function StartTrac() As OperationResult(Of Boolean)
    <OperationContract()>
    Function StopTrac() As OperationResult(Of Boolean)
    <OperationContract()>
    Function IsTracRunning() As OperationResult(Of Boolean)
End Interface

An interface doesn’t allow you to specify that it “implements” another interface, however in my case I needed to state that I have both interfaces, just by chance I put a comma in and entered the other interface, built and ran my unit tests and it works…

Previously I have been trying to follow a single inheritance tree such as

<ServiceContract()>
Public Interface IFullService
    Inherits IVersionService
    <OperationContract()>
    Function StartTrac() As OperationResult(Of Boolean)
    <OperationContract()>
    Function StopTrac() As OperationResult(Of Boolean)
    <OperationContract()>
    Function IsTracRunning() As OperationResult(Of Boolean)
End Interface

<ServiceContract()>
Public Interface IVersionService
    Inherits ISerializableObjectLayerService
    <OperationContract()>
    Function GetVersionsSince(ByVal VersionNumber As Long, IncludeBetas As Boolean) As OperationResult(Of Core.Setting.MemoryBmsReleaseInfo())
End Interface

As you can see here the IFullService inherits the IVersionService which then inherits the IVersionService. However in my case I needed a way for something to implement IVersionService without implementing the ISerializableObjectLayerService which is what lead me to my “working” solution.

Unfortunately I can’t work out how to find out what exactly this is doing. I have search through stackoverflow, google, msdn and I can’t find an example with Inherits ,

Could some guru please provide some information on what exactly this is accomplishing (would be great if you can provide a MSDN link), as I don’t like doing something that I don’t understand (as it can lead to problem in the future that you can work out :D)

Hopefully this question isn’t too noobish 😀

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:41:03+00:00Added an answer on May 24, 2026 at 6:41 am

    Microsoft docs do mention it:

    http://msdn.microsoft.com/en-us/library/ms173156.aspx

    An interface itself can inherit from multiple interfaces.

    Edit: Another link (All VB, with example), for an early edition of Visual Studio, but the information still applies.

    http://msdn.microsoft.com/en-us/library/aa711871%28v=vs.71%29.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to work this out. In my project, i have a file called
i am trying to work this out is the simplest way, i am a
Okay I been trying to work this out but unable too. I have a
I'm trying for a while to work this out with no success so far
I'm trying to work out what regular expression I would need to change this
I am trying to work out the best way of doing this but not
I ask this because I am currently trying to work out my own technique,
I found this in an error log and am trying to work out how
I have been pulling my hair out trying to make this work. I have
I'm trying to test this out on my site but it doesn't quite work

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.