/// <summary>
 /// Indicates the relative sort order of this object to another of the same type.
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public int CompareTo(EventMetric other)
 {
     //we let our internal objects do the compare, we're really just wrapping things
     return(WrappedMetric.CompareTo(other.WrappedMetric));
 }
 /// <summary>
 /// Determines if the provided object is identical to this object.
 /// </summary>
 /// <param name="other">The object to compare this object to</param>
 /// <returns>True if the objects represent the same data.</returns>
 public bool Equals(EventMetric other)
 {
     //We're really just a type cast, refer to our base object
     return(WrappedMetric.Equals(other.WrappedMetric));
 }
Exemple #3
0
 /// <summary>
 /// Compare this sampled metric to another sampled metric.
 /// </summary>
 /// <param name="other">The sampled metric to compare this sampled metric to.</param>
 /// <returns>A value which is less than, equal to, or greater than zero to represent the comparison result.</returns>
 public int CompareTo(SampledMetric other)
 {
     //we let our base object do the compare, we're really just casting things
     return(WrappedMetric.CompareTo(other.WrappedMetric));
 }