Пример #1
0
 /// <summary>
 /// Updates the page with properties from the passed page. Throws an exception if pages are not equal.
 /// </summary>
 /// <param name="page"></param>
 public void MergeWithPage(PageTypeGo page)
 {
     if (!this.Equals(page))
     {
         throw new InvalidOperationException($"{nameof(MergeWithPage)} requires method to be a pageable operation");
     }
     PreparerNeeded |= page.PreparerNeeded;
 }
Пример #2
0
 /// <summary>
 /// Creates a new iterator type for the specified pageable type.
 /// </summary>
 /// <param name="method">The pageable type that requires an iterator.</param>
 public IteratorTypeGo(PageTypeGo pageType) : base(CodeNamerGo.Instance.GetIteratorTypeName(pageType))
 {
     PageType      = pageType;
     Documentation = $"Provides access to a complete listing of {PageType.ElementType.Name} values.";
 }