コード例 #1
0
 /// <summary>
 /// Translate a MetadataSegment
 /// </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(MetadataSegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(false);
 }
コード例 #2
0
 /// <summary>
 /// Translate a MetadataSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public override string Translate(MetadataSegment segment)
 {
     return(string.Empty);
 }
コード例 #3
0
 /// <summary>
 /// Handle a MetadataSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public virtual void Handle(MetadataSegment segment)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 /// <summary>
 /// Handle a MetadataSegment
 /// </summary>
 /// <param name="segment">the segment to Handle</param>
 public override void Handle(MetadataSegment segment)
 {
     CommonHandler(segment);
 }
コード例 #5
0
 /// <summary>
 /// Translate a MetadataSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public virtual T Translate(MetadataSegment segment)
 {
     throw new NotImplementedException();
 }
コード例 #6
0
 /// <summary>
 /// Determine the NavigationSource of a MetadataSegment
 /// </summary>
 /// <param name="segment">The MetadataSegment to look in.</param>
 /// <returns>null, since $batch doesn't have an navigation source</returns>
 /// <exception cref="System.ArgumentNullException">Throws if the input segment is null.</exception>
 public override IEdmNavigationSource Translate(MetadataSegment segment)
 {
     ExceptionUtils.CheckArgumentNotNull(segment, "segment");
     return(null);
 }
コード例 #7
0
 /// <summary>
 /// Translate a MetadataSegment
 /// </summary>
 /// <param name="segment">the segment to Translate</param>
 /// <returns>Defined by the implementer.</returns>
 public override string Translate(MetadataSegment segment)
 {
     Debug.Assert(segment != null, "segment != null");
     return("/" + segment.Identifier);
 }