Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| Term
| Structure
|
| Definition
| Normally, a structure is a light-weight class used to create user-defined types containing only public fields and no properties. A structure is considered a value type. .NET structures support access modifiers, constructors, indexers, methods, nested types, operators, and properties. Unlike classes, structures do not support custom constructors, destructors, inheritance, or compile-time initialization of instance fields. Performance suffers when using structures in situations where reference types are expected due to Boxing and Unboxing.
|
| See also
| C# keyword struct, Class,
|
| You may edit this definition to improve or extend it.
|