/// <summary> /// Initializes a new instance of the <see cref="XmlDeviceIdFormatter"/> class. /// </summary> /// <param name="encoder">The <see cref="IDeviceIdComponentEncoder"/> instance to use to encode individual components.</param> public StringDeviceIdFormatter(IDeviceIdComponentEncoder encoder) : this(encoder, ".") { }
/// <summary> /// Initializes a new instance of the <see cref="XmlDeviceIdFormatter"/> class. /// </summary> /// <param name="encoder">The <see cref="IDeviceIdComponentEncoder"/> instance to use to encode individual components.</param> /// <param name="delimiter">The delimiter to use when concatenating the encoded component values.</param> public StringDeviceIdFormatter(IDeviceIdComponentEncoder encoder, string delimiter) { _encoder = encoder ?? throw new ArgumentNullException(nameof(encoder)); _delimiter = delimiter; }
/// <summary> /// Initializes a new instance of the <see cref="XmlDeviceIdFormatter"/> class. /// </summary> /// <param name="encoder">The <see cref="IDeviceIdComponentEncoder"/> instance to use to encode individual components.</param> public XmlDeviceIdFormatter(IDeviceIdComponentEncoder encoder) { _encoder = encoder ?? throw new ArgumentNullException(nameof(encoder)); }