/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false. /// </returns> public bool Equals(VariableByte other) { return(other._max == _max && other._min == _min); }
/// <summary> /// Writes a <see cref="VariableByte"/> the specified writer. /// </summary> /// <param name="writer"><see cref="IValueWriter"/> to write to.</param> /// <param name="name">Unique name of the <paramref name="value"/> that will be used to distinguish it /// from other values when reading.</param> /// <param name="value">Value to write.</param> public static void Write(this IValueWriter writer, string name, VariableByte value) { WriteVariableValue(writer, name, value, writer.Write); }