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

  • SEARCH
  • Home
  • 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 4545614
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:50:17+00:00 2026-05-21T15:50:17+00:00

I want to do this (I’m on silverlight but nothing specific so want to

  • 0

I want to do this (I’m on silverlight but nothing specific so want to do this also on winform and wpf)

namespace MyComponents
{
    public class IMyManager : ILibManager
    {
        void SetModel(ILibModel model);
    }
}

but get this error

Error 2 ‘MyComponents.IMymanager’ does not implement interface member ‘lib.manager.ILibManager.SetModel(lib.model.ILibModel)’. ‘MyComponents.IMymanager.SetModel(lib.model.ILibModel)’ cannot implement an interface member because it is not public. C:…\MyComponents\MyComponents\IMymanager.cs 17 18 MyComponents

Why ? This is the code in Lib

using lib.model;

using System;
using System.Collections.Generic;
using System.Text;

namespace lib.manager
{
    public interface ILibManager
    {
        public void SetModel(ILibModel model);
    }
}

using lib.model;

using System;
using System.Net;
using System.Windows;


namespace lib.manager
{
    public class Manager: IManager
    {
        // Constructor
        public Manager() { 

        }

        public void SetModel(ILibModel model) {

        }

    }
}

namespace lib.model
{
    public interface ILibModel
    {

    }
}


namespace lib.model
{
    public class Model : ILibModel
    {

    }
}
  • 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-21T15:50:18+00:00Added an answer on May 21, 2026 at 3:50 pm

    I believe you had two errors here, didn’t you? there should be an error saying that SetModel should have a body because IMyManager isn’t an interface or an abstract class!

    So, I believe you should have a body for that method, and then it has to be “public” since it’s part of an implementation of an interface. And you should also rename IMyManager to be “MyManager”, since it’s not an interface. you should have your class like this:

    public class MyManager : ILibManager
    {
        public void SetModel(ILibModel model)
        {
            // implementation of SetModel
        }
    }
    

    Hope this helps 🙂

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

Sidebar

Related Questions

I want this usercontrol to be Created via MEF but also to have the
I want this highchart - http://jsfiddle.net/zPDca/ inside a popup. But if i decrease its
I want this procedure to be executed everyday 2:00 a.m. Also, i want to
I want this.item of an instance of the class to be filled by the
I want this code to be possible. template<typename K, typename T, typename Comparer> class
I want this below class to return IList<> Please tell me why it is
I want this table to disappear, but for some reason it won't. What is
I want this class to initialize to receive a message to be saved and
I want this: [foo() for _ in xrange (100)] but beautifuller. ?
I want this: http://www.img-share.net/uploads/33986layout.png But this does not work http://jsfiddle.net/RLN8x/1/ please help me...

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.