/// <summary> /// This method compares the values of two ContextDimensionInfo objects. /// Comparison order: /// (1) ID /// (2) DimensionID /// (3) Type /// </summary> /// <param name="s">The ContextDimensionInfo object.</param> /// <returns>Returns the comparison results.</returns> public int CompareValue(ContextDimensionInfo s) { int ret = Id.CompareTo(s.Id); if (ret != 0) { return(ret); } ret = dimensionId.CompareTo(s.dimensionId); if (ret != 0) { return(ret); } return(type.CompareTo(s.type)); }