Beispiel #1
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 6, Configuration.FieldSeparator),
                       Id,
                       SetIdVnd.HasValue ? SetIdVnd.Value.ToString(culture) : null,
                       VendorIdentifier?.ToDelimitedString(),
                       VendorName,
                       VendorCatalogNumber?.ToDelimitedString(),
                       PrimaryVendorIndicator?.ToDelimitedString()
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 12, Configuration.FieldSeparator),
                       Id,
                       SetIdVnd.HasValue ? SetIdVnd.Value.ToString(culture) : null,
                       VendorIdentifier?.ToDelimitedString(),
                       VendorName,
                       VendorCatalogNumber?.ToDelimitedString(),
                       PrimaryVendorIndicator?.ToDelimitedString(),
                       Corporation != null ? string.Join(Configuration.FieldRepeatSeparator, Corporation.Select(x => x.ToDelimitedString())) : null,
                       PrimaryContact?.ToDelimitedString(),
                       ContractAdjustment?.ToDelimitedString(),
                       AssociatedContractId != null ? string.Join(Configuration.FieldRepeatSeparator, AssociatedContractId.Select(x => x.ToDelimitedString())) : null,
                       ClassOfTrade != null ? string.Join(Configuration.FieldRepeatSeparator, ClassOfTrade) : null,
                       PricingTierLevel?.ToDelimitedString()
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }