Ctor AbstractSegmentItem doesn't set _length
Brought to you by:
sdouglas50,
whitedog12
"public AbstractSegmentItem(System.Type t, bool required, int maxReps, int length, System.Object[] constructorArgs, string description)"
in ns NHapi.Base.Model
doesn't set the private member _length, so it's always the initial value: 0.
Adding this line fixes things: "_length = length;"