Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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));
 }