The full name of the interface member

Source: Internet
Author: User

Use of an interface member can also take the full name (fully qualified name). The full name of the interface is made up of: interface name plus small dot "·" Again with the member name. For example, for the following two interfaces:

Interface IControl
{
void Paint ();
}
Interface Itextbox:icontrol
{
void SetText (string text);
}

One of Paint's full name is Icontrol.paint,settext's full name is Itextbox.settext. Of course, the name of the membership must be in the interface has been declared, such as the use of itextbox.paint is unreasonable.

If the interface is a member of a namespace, the full name must also contain the name of the namespace.

Namespace System
{
public interface ICloneable
{
Object Clone ();
}
}

Then the full name of the Clone method is System.ICloneable.Clone.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.