Beispiel #1
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>
        internal override bool Equals(ODataPathSegment other)
        {
            DebugUtils.CheckNoExternalCallers();
            ValueSegment otherValueSegment = other as ValueSegment;

            return(otherValueSegment != null &&
                   otherValueSegment.EdmType == this.edmType);
        }
Beispiel #2
0
 /// <summary>
 /// Translate a ValueSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public virtual T Translate(ValueSegment segment)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 /// <summary>
 /// Determine the EntitySet of a ValueSegment
 /// </summary>
 /// <param name="segment">The ValueSegment to look in.</param>
 /// <returns>null, since $value doesn't have an entity set</returns>
 /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception>
 public override IEdmEntitySet Translate(ValueSegment segment)
 {
     DebugUtils.CheckNoExternalCallers();
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(null);
 }
Beispiel #4
0
 /// <summary>
 /// Handle a ValueSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public virtual void Handle(ValueSegment segment)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 /// <summary>
 /// Translate a ValueSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>UserDefinedValue</returns>
 /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception>
 public override bool Translate(ValueSegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     throw new NotImplementedException(segment.ToString());
 }