12.3 Structures

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

 public struct DataGridCell {    // member definitions } 

In VB, a structure definition is indicated by the Structure ... End Structure construct:

 Public Structure DataGridCell    ' member definitions End Structure 

C# uses the colon with structures to indicate interface implementation. Any implemented interfaces are part of the class statement. In VB, any implemented interfaces are specified by an Implements statement on the line immediately following the Structure statement. However, none of the structures documented in the reference section of this book use interface inheritance.



. 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