/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 15, Configuration.FieldSeparator), Id, SetIdAig.HasValue ? SetIdAig.Value.ToString(culture) : null, SegmentActionCode, ResourceId?.ToDelimitedString(), ResourceType?.ToDelimitedString(), ResourceGroup != null ? string.Join(Configuration.FieldRepeatSeparator, ResourceGroup.Select(x => x.ToDelimitedString())) : null, ResourceQuantity.HasValue ? ResourceQuantity.Value.ToString(Consts.NumericFormat, culture) : null, ResourceQuantityUnits?.ToDelimitedString(), StartDateTime.HasValue ? StartDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, StartDateTimeOffset.HasValue ? StartDateTimeOffset.Value.ToString(Consts.NumericFormat, culture) : null, StartDateTimeOffsetUnits?.ToDelimitedString(), Duration.HasValue ? Duration.Value.ToString(Consts.NumericFormat, culture) : null, DurationUnits?.ToDelimitedString(), AllowSubstitutionCode?.ToDelimitedString(), FillerStatusCode?.ToDelimitedString() ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }