12.4 Interfaces

C# uses the interface statement along with opening and closing braces to indicate the beginning and end of an interface definition. For example:

 public interface IUIService {    // member definitions } 

In VB, an interface definition is indicated by the Interface ... End Structure construct:

 Public Interface IUIService    ' member definitions End Interface 

C# uses the colon with interfaces to specify any implemented interfaces. For example:

 public interface ISite : IServiceProvider 

In VB, any implemented interfaces are specified by an Implements statement on the line immediately following the Interface statement. Hence, the previous definition of ISite in C# would appear as follows in VB:

 Public Interface ISite    Implements IServiceProvider 


. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net