Can anyone explain why a interface method implementation using the fully
qualified name cannot be public or protected? Sample below:
public interface IDrawable
{
void DrawYourself();
}
public interface IPositional
{
Point Position
{
get;
set;
}
}
public interface IShape : IDrawable, IPositional {}
public abstract class AbstractShape : IShape
{
Point position= new Point(0,0);
public virtual void DrawYourself()
{
System.Console.WriteLine("Abstract Shape");
}
// This cannot be public or protected
Point IPositional.Position
{
get {return position;}
set {position= value;}
}
// This works as expected in subclass
public Point Position
{
get {return position;}
set {position= value;}
}
}
Regards,
Jeff
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!