Example #1
0
        /// <summary>
        /// Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
        /// </summary>
        /// <param name="obj">An object to compare with this instance.</param>
        /// <returns>A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes <paramref name="obj" /> in the sort order. Zero This instance occurs in the same position in the sort order as <paramref name="obj" />. Greater than zero This instance follows <paramref name="obj" /> in the sort order.</returns>
        /// <exception cref="System.NotImplementedException"></exception>
        public Int32 CompareTo(Object obj)
        {
            AggregateVersion otherVersion = (AggregateVersion)obj;

            return(this.Value.CompareTo(otherVersion.Value));
        }
Example #2
0
 /// <summary>
 /// Equalses the specified other.
 /// </summary>
 /// <param name="other">The other.</param>
 /// <returns>Boolean.</returns>
 public Boolean Equals(AggregateVersion other)
 {
     return(this.Value.Equals(other.Value));
 }
Example #3
0
 /// <summary>
 /// Parses the specified identifier.
 /// </summary>
 /// <param name="valueAsString">The value as string.</param>
 /// <returns>AggregateVersion.</returns>
 public static AggregateVersion Parse(String valueAsString)
 {
     return(AggregateVersion.CreateFrom(Int64.Parse(valueAsString)));
 }