What is a struct used for?

‘Struct’ keyword is used to create a structure . A structure can contain variables, methods, static constructor, parameterized constructor, operators, indexers, events, and property. A structure can not derive/inherit from any structure or class. A structure can implement any number of interfaces.

Read more

How do you declare a structure variable?

You begin a structure declaration with the Structure Statement, and you end it with the End Structure statement . Between these two statements you must declare at least one element. The elements can be of any data type, but at least one must be either a nonshared variable or a nonshared, noncustom event.

Read more