Exemplo n.º 1
0
 /// <summary>
 /// Writes a <see cref="VariableUShort"/> 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, VariableUShort value)
 {
     WriteVariableValue(writer, name, value, writer.Write);
 }
Exemplo n.º 2
0
 /// <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(VariableUShort other)
 {
     return(other._max == _max && other._min == _min);
 }