Interface implementation in VS 2005 Pro

  • Thread starter Thread starter RYoung
  • Start date Start date
R

RYoung

I'm developing a WinForms app in VS Pro 2005. I have defined an interface
for custom controls to implement:

interface IViewPanel
{
string Name{ get; }
}

A user control class:

partial class MyControl : UserControl, IViewPanel
{
// generated code
}

When I build at this point, the build succeeds even though I haven't
implemented the IViewPanel interface in MyControl. A SmartTag for IViewPanel
only has the "Explicitly implement IViewPanel".

If I use a BCL Interface, such as IConfigurationSectionHandler - the options
are to implement it, or explcitly implement it.

Anyone else see this problem?

Ron
 
can't use "Name" as a property in the interface because the UserControl
already has a Name property.
 
Back
Top