Explicit interface member implementations
An explicit interface member implementation is a method, property, event, or indexer declaration that references a fully qualified interface member name.
Example for Explicit interface member implementations
An explicit interface member implementation is a method, property, event, or indexer declaration that references a fully qualified interface member name.
Example for Explicit interface member implementations
interface IControl
{
void Paint();
}
{
void Paint();
}
interface ITextBox: IControl
{
void SetText(string text);
}
{
void SetText(string text);
}
class TextBox: ITextBox
{
void IControl.Paint() {...}
void ITextBox.SetText(string text) {...}
}
{
void IControl.Paint() {...}
void ITextBox.SetText(string text) {...}
}