/// <summary> /// Creates a new Segment and copies values from another Segment. /// </summary> /// <param name="other">Segment to copy values from.</param> internal ODataPathSegment(ODataPathSegment other) { DebugUtils.CheckNoExternalCallers(); this.CopyValuesFrom(other); }
/// <summary> /// Check if this segment is equal to another segment. /// </summary> /// <param name="other">the other segment to check.</param> /// <returns>true if the other segment is equal.</returns> /// <exception cref="System.ArgumentNullException">throws if the input other is null.</exception> internal override bool Equals(ODataPathSegment other) { DebugUtils.CheckNoExternalCallers(); ExceptionUtils.CheckArgumentNotNull(other, "other"); return(other is CountSegment); }
/// <summary> /// Check if this segment is equal to another segment. /// </summary> /// <param name="other">the other segment to check</param> /// <returns>true if the segments are equal.</returns> internal virtual bool Equals(ODataPathSegment other) { DebugUtils.CheckNoExternalCallers(); return(ReferenceEquals(this, other)); }