Hi all,

If you have an interface declared as "internal":

 internal interface IFoo {
  IFoo Clone();
 }

can it ever be used by a class at "public"?

 public class Bar : IFoo {
  public IFoo Clone() {
   return null;
  }
        }

Visual Studio gives "return type IFoo is less accessible than method
Bar.Clone()".  But if you use internal instead:

 public class Bar : IFoo {
  internal IFoo Clone() {
   return null;
  }
        }

you get "does not implement interface member Clone().  Clone() is either
static, not public, or has the wrong return type."

Is this by design?

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to