示例#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>
        /// <exception cref="System.ArgumentNullException">Throws if the input other is null.</exception>
        internal override bool Equals(ODataPathSegment other)
        {
            DebugUtils.CheckNoExternalCallers();
            ExceptionUtils.CheckArgumentNotNull(other, "other");
            OpenPropertySegment otherOpenProperty = other as OpenPropertySegment;

            return(otherOpenProperty != null && otherOpenProperty.PropertyName == this.PropertyName);
        }
示例#2
0
 /// <summary>
 /// Translate an OpenPropertySegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public virtual T Translate(OpenPropertySegment segment)
 {
     throw new NotImplementedException();
 }
示例#3
0
 /// <summary>
 /// Handle an OpenPropertySegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public virtual void Handle(OpenPropertySegment segment)
 {
     throw new NotImplementedException();
 }
示例#4
0
 /// <summary>
 /// Determine the EntitySet of a OpenPropertySegment
 /// </summary>
 /// <param name="segment">The OpenPropertySegment to look in.</param>
 /// <returns>null, since an OpenProperty doesn't have an entity set</returns>
 /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception>
 public override IEdmEntitySet Translate(OpenPropertySegment segment)
 {
     DebugUtils.CheckNoExternalCallers();
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(null);
 }
示例#5
0
 /// <summary>
 /// Translate an OpenPropertySegment
 /// </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(OpenPropertySegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(false);
 }