public DurationStruct Duration; //{get; set;} -can't return a ref to a val type (in C#) public void Init() { // initialize struct (not really "new" like a ref type) Duration = new DurationStruct(1, DurationUnit.Hours); }
public DurationStruct Duration; //{get; set;} -can't return a ref to a val type (in C#) public void Init() { // initialize struct (not really "new" like a ref type) // -helpful syntax if DurationStruct ever graduated/ascended to class Duration = new DurationStruct(1, DurationUnit.Hours); }