Beispiel #1
0
        /// <inheritdoc/>
        public void FromDelimitedString(string delimitedString, Separators separators)
        {
            Separators seps = separators ?? new Separators().UsingConfigurationValues();

            string[] separator = IsSubcomponent ? seps.SubcomponentSeparator : seps.ComponentSeparator;
            string[] segments  = delimitedString == null
                ? Array.Empty <string>()
                : delimitedString.Split(separator, StringSplitOptions.None);

            PlacerAssignedIdentifier = segments.Length > 0 && segments[0].Length > 0 ? TypeSerializer.Deserialize <EntityIdentifier>(segments[0], true, seps) : null;
            FillerAssignedIdentifier = segments.Length > 1 && segments[1].Length > 0 ? TypeSerializer.Deserialize <EntityIdentifier>(segments[1], true, seps) : null;
        }
        /// <inheritdoc/>
        public void FromDelimitedString(string delimitedString, Separators separators)
        {
            Separators seps = separators ?? new Separators().UsingConfigurationValues();

            string[] separator = IsSubcomponent ? seps.SubcomponentSeparator : seps.ComponentSeparator;
            string[] segments  = delimitedString == null
                ? Array.Empty <string>()
                : delimitedString.Split(separator, StringSplitOptions.None);

            Privilege      = segments.Length > 0 && segments[0].Length > 0 ? TypeSerializer.Deserialize <CodedWithExceptions>(segments[0], true, seps) : null;
            PrivilegeClass = segments.Length > 1 && segments[1].Length > 0 ? TypeSerializer.Deserialize <CodedWithExceptions>(segments[1], true, seps) : null;
            ExpirationDate = segments.Length > 2 && segments[2].Length > 0 ? segments[2].ToNullableDateTime() : null;
            ActivationDate = segments.Length > 3 && segments[3].Length > 0 ? segments[3].ToNullableDateTime() : null;
            Facility       = segments.Length > 4 && segments[4].Length > 0 ? TypeSerializer.Deserialize <EntityIdentifier>(segments[4], true, seps) : null;
        }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EntityIdentifierPair"/> class.
 /// </summary>
 /// <param name="placerAssignedIdentifier">EIP.1 - Placer Assigned Identifier.</param>
 /// <param name="fillerAssignedIdentifier">EIP.2 - Filler Assigned Identifier.</param>
 public EntityIdentifierPair(EntityIdentifier placerAssignedIdentifier, EntityIdentifier fillerAssignedIdentifier)
 {
     PlacerAssignedIdentifier = placerAssignedIdentifier;
     FillerAssignedIdentifier = fillerAssignedIdentifier;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EntityIdentifierPair"/> class.
 /// </summary>
 /// <param name="placerAssignedIdentifier">EIP.1 - Placer Assigned Identifier.</param>
 public EntityIdentifierPair(EntityIdentifier placerAssignedIdentifier)
 {
     PlacerAssignedIdentifier = placerAssignedIdentifier;
 }