On this page:
equals method for comparison purposes and a
clone method to create a shallow copy.
If the structure qualifies for use as a dictionary key, instances also define a
hashCode function as required by the
The generated constructor has one parameter for each data member. This allows you to construct and initialize an instance in a single statement (instead of first having to construct the instance and then assign to its members). The constructor assigns a default value to each property appropriate for the type of its corresponding member:
|Data Member Type||Default Value|
|First enumerator in enumeration|
If you wish to ensure that data members of primitive and enumerated types are initialized to specific values, you can declare default values in your Slice definition. The constructor initializes each of these data members to its declared value instead.