If you were designing a class that could be used for a few different types of objects, and not every property was used for every object type how would you do it between the two versions here?
Mainly, sometimes an object will always only have one “transition” value, and sometimes it will have more than one. Would you use an array even for object that only need one value, or would you use a single property for those and an array for objects that need more than one value?
<pre>class myClass { public string transition; // Use for objects that only need one value. public string[] transitions; // Ignore for objects that only need one value. public int otherProperty; ...etc. } </pre>
or
<pre> { public string[] transitions; // Use when one or more values are needed. public int otherProperty; ...etc. } </pre>