/// <summary> /// Initializes a new instance of <see cref="HessianOutputV2"/>. /// </summary> /// <param name="streamWriter"> /// The instance used to write to the stream. /// </param> /// <param name="typeBindings"> /// Custom type bindings. /// </param> public HessianOutputV2(HessianStreamWriter streamWriter, TypeBindings typeBindings = null) : base(streamWriter) { _serializer = new Serializer(this, typeBindings); }
/// <summary> /// Initializes a new instance of <see cref="HessianOutput"/>. /// </summary> /// <param name="streamWriter"> /// The instance used to write to the stream. /// </param> /// <exception cref="ArgumentNullException"> /// If <paramref name="streamWriter"/> is null. /// </exception> protected HessianOutput(HessianStreamWriter streamWriter) { _streamWriter = streamWriter ?? throw new ArgumentNullException(nameof(streamWriter)); }