/// <summary> /// Initializes a new instance of <see cref="HessianInputV2"/>. /// </summary> /// <param name="streamReader"> /// The instance used to read from the stream. /// </param> /// <param name="typeBindings"> /// Custom bindings remoted type strings. /// </param> public HessianInputV2(HessianStreamReader streamReader, TypeBindings typeBindings = null) : base(streamReader) { _deserializer = new Deserializer(this, typeBindings); }
/// <summary> /// Initializes a new instance of <see cref="HessianInput"/>. /// </summary> /// <param name="streamReader"> /// The instance used to read from the stream. /// </param> /// <exception cref="ArgumentNullException"> /// If <paramref name="streamReader"/> is null. /// </exception> protected HessianInput(HessianStreamReader streamReader) { _streamReader = streamReader ?? throw new ArgumentNullException(nameof(streamReader)); }