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