Popular Posts

There was an error in this gadget

Jul 21, 2011

Struct(C#)


struct type is a value type that can contain constructors, constants, fields, methods, properties, indexers, operators, events, and nested types.
The format of declaration of struct is :
[attributes] [modifiers] struct identifier [:interfaces] body [;]


attributes (Optional)

Additional declarative information. For more information on attributes and attribute classes

modifiers (Optional)

The allowed modifiers are new and the four access modifiers.

identifier

The struct name.

interfaces (Optional)

A list that contains the interfaces implemented by the struct, all separated by commas.

body

The struct body that contains member declarations.

For more visit:
http://msdn.microsoft.com/en-us/library/ah19swz4(v=vs.71).aspx

No comments:

Post a Comment