20.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. [Example: For example, given the declarations
C# LANGUAGE SPECIFICATION
284
interface IControl
{
void Paint();
}
interface ITextBox: IControl
{
void SetText(string text);
}
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]
When an interface is part of a namespace, the fully qualified name of an
interface member includes the
namespace name. [Example: For example
namespace System
{
public interface ICloneable
{
object Clone();
}
}
Here, the fully qualified name of the Clone method is
System.ICloneable.Clone. end example]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值