Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
 /// <inheritdoc />
 public bool Equals(OpenXmlComparableSimpleReference <T> other)
 {
     return(!(other is null) && Equals(Value, other.Value));
 }
Ejemplo n.º 3
0
 /// <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)
 {
 }