Answer the question
In order to leave comments, you need to log in
Where did the interface methods go?
interface IView
{
void Show();
void Close();
}
interface IStartView: IView
{
String[] A{get; set;}
}
class StartView: Form, IStartView
{
String[] A{get; set}
//...
}
interface IStartView: IView
{
String[] A{get; set;}
void Show(); //Ошибка
void Close(); //Ошибка
}
class StartView: Form, IView, IStartView
{
//....
}
Answer the question
In order to leave comments, you need to log in
There is such a magic button in VS:
If you are not in VS, then here:
class StartView : IStartView
{
string[] IStartView.A
{
get
{
throw new NotImplementedException();
}
set
{
throw new NotImplementedException();
}
}
public void Close()
{
throw new NotImplementedException();
}
public void Show()
{
throw new NotImplementedException();
}
//...
}
class StartView : IStartView
{
public void IView.Close()
{
//...
}
///...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question