Structure(s) or 'structs'...
What is a structure or struct? This term and programming development construct, refers to a user-defined, custom, value-type, consisting of other types. It is taken from the root meaning from the programming language called keyword upon to enact and create it. As with other value types, these user-defined instances types, are typically stored on the stack, containing their data directly (not stored somewhere else, separately) Structures behave very similarly to classes in their very nature. A composite of other types, to make it come ‘compatible’, readily accessible, inter-operable to an extent.
Good for use for repetition over a fixed range, or a cycle. Conversions can also be done with these, but more efficient than classes in general. Criteria for structure types include: (i) single value representation logically (ii) instance size less than 16 bytes (iii) not cast to a reference type/conversion (iv) not frequently altered after being created.
Key Exam Points
-
Use with and through the structure keyword in VB, struct keyword in C#
-
Declaring and using value types, creating structures or structs, adding things to and/or modifying structures.
-
Work your way through the practice, case studies and exam study examples structures/structs, that help you to gain a better practical understanding of this topic
Related Terms
Value-type
This article is based on the 2nd edition of the Microsoft .Net Framework Application Training Kit with the purpose to help 70-536 Exam takers to succeed. I constantly look for ways to improve the content. Please leave a comment about this article or drop me a message if you would like to see changes for this site.





