/// <inheritdoc /> public int CompareTo(OpenXmlComparableSimpleReference <T> other) { if (other is null) { return(1); } if (Value == null) { return(other.Value == null ? 0 : -1); } return(Value.CompareTo(other.Value)); }
/// <inheritdoc /> public bool Equals(OpenXmlComparableSimpleReference <T> other) { return(!(other is null) && Equals(Value, other.Value)); }
/// <summary> /// Initializes a new instance of the <see cref="OpenXmlComparableSimpleReference{T}"/> /// class by deep copying the supplied <see cref="OpenXmlComparableSimpleReference{T}"/> /// value. /// </summary> /// <param name="source">The source <see cref="OpenXmlComparableSimpleReference{T}"/> instance.</param> private protected OpenXmlComparableSimpleReference(OpenXmlComparableSimpleReference <T> source) : base(source) { }