ECMA-334 C# Language Specification20.3: Fully qualified interface member names |
An interface member is sometimes referred to by its fully qualified name. The fully qualified name of an interface member consists of the name of the interface in which the member is declared, followed by a dot, followed by the name of the member. The fully qualified name of a member references the interface in which the member is declared.
the fully qualified name of Paint is IControl.Paint and the fully qualified name of SetText is ITextBox.SetText. In the example above, it is not possible to refer to Paint as ITextBox.Paint. end example]
interface IControl
{
void Paint();
}
interface ITextBox: IControl
{
void SetText(string text);
}
When an interface is part of a namespace, the fully qualified name of an interface member includes the namespace name.
namespace System
{
public interface ICloneable
{
object Clone();
}
}