コード例 #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();
            BatchReferenceSegment otherBatchReferenceSegment = other as BatchReferenceSegment;

            return(otherBatchReferenceSegment != null &&
                   otherBatchReferenceSegment.EdmType == this.edmType &&
                   otherBatchReferenceSegment.EntitySet == this.entitySet &&
                   otherBatchReferenceSegment.ContentId == this.contentId);
        }
コード例 #2
0
 /// <summary>
 /// Translate a BatchReferenceSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public virtual T Translate(BatchReferenceSegment segment)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
ファイル: PathSegmentHandler.cs プロジェクト: tapika/swupd
 /// <summary>
 /// Handle a BatchReferenceSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public virtual void Handle(BatchReferenceSegment segment)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 /// <summary>
 /// Determine the EntitySet of a BatchReferenceSegment
 /// </summary>
 /// <param name="segment">The BatchReferenceSegment to look in.</param>
 /// <returns>The IEdmEntitySet of this BatchReferenceSegment</returns>
 /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception>
 public override IEdmEntitySet Translate(BatchReferenceSegment segment)
 {
     DebugUtils.CheckNoExternalCallers();
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(segment.EntitySet);
 }
コード例 #5
0
 /// <summary>
 /// Translate a BatchReferenceSegment
 /// </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(BatchReferenceSegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(false);
 }