Skip to content

Commit e257752

Browse files
committed
Cleanup source code
1 parent e62fa92 commit e257752

File tree

2 files changed

+1
-49
lines changed

2 files changed

+1
-49
lines changed

src/X.PagedList/IPagedList.cs

+1-45
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ namespace X.PagedList;
88
/// Represents a subset of a collection of objects that can be individually accessed by index and containing
99
/// metadata about the superset collection of objects this subset was created from.
1010
/// </summary>
11-
/// <remarks>
12-
/// Represents a subset of a collection of objects that can be individually accessed by index and containing
13-
/// metadata about the superset collection of objects this subset was created from.
14-
/// </remarks>
1511
/// <typeparam name="T">The type of object the collection should contain.</typeparam>
16-
/// <seealso cref="IEnumerable{T}"/>
12+
/// <seealso cref="IReadOnlyList{T}"/>
1713
[PublicAPI]
1814
public interface IPagedList<out T> : IPagedList, IReadOnlyList<T>
1915
{
@@ -29,101 +25,61 @@ public interface IPagedList<out T> : IPagedList, IReadOnlyList<T>
2925
/// Represents a subset of a collection of objects that can be individually accessed by index and containing
3026
/// metadata about the superset collection of objects this subset was created from.
3127
/// </summary>
32-
/// <remarks>
33-
/// Represents a subset of a collection of objects that can be individually accessed by index and containing
34-
/// metadata about the superset collection of objects this subset was created from.
35-
/// </remarks>
3628
public interface IPagedList
3729
{
3830
/// <summary>
3931
/// Total number of subsets within the superset.
4032
/// </summary>
41-
/// <value>
42-
/// Total number of subsets within the superset.
43-
/// </value>
4433
int PageCount { get; }
4534

4635
/// <summary>
4736
/// Total number of objects contained within the superset.
4837
/// </summary>
49-
/// <value>
50-
/// Total number of objects contained within the superset.
51-
/// </value>
5238
int TotalItemCount { get; }
5339

5440
/// <summary>
5541
/// One-based index of this subset within the superset, zero if the superset is empty.
5642
/// </summary>
57-
/// <value>
58-
/// One-based index of this subset within the superset, zero if the superset is empty.
59-
/// </value>
6043
int PageNumber { get; }
6144

6245
/// <summary>
6346
/// Maximum size any individual subset.
6447
/// </summary>
65-
/// <value>
66-
/// Maximum size any individual subset.
67-
/// </value>
6848
int PageSize { get; }
6949

7050
/// <summary>
7151
/// Returns true if the superset is not empty and PageNumber is less than or equal to PageCount and this
7252
/// is NOT the first subset within the superset.
7353
/// </summary>
74-
/// <value>
75-
/// Returns true if the superset is not empty and PageNumber is less than or equal to PageCount and this
76-
/// is NOT the first subset within the superset.
77-
/// </value>
7854
bool HasPreviousPage { get; }
7955

8056
/// <summary>
8157
/// Returns true if the superset is not empty and PageNumber is less than or equal to PageCount and this
8258
/// is NOT the last subset within the superset.
8359
/// </summary>
84-
/// <value>
85-
/// Returns true if the superset is not empty and PageNumber is less than or equal to PageCount and this
86-
/// is NOT the last subset within the superset.
87-
/// </value>
8860
bool HasNextPage { get; }
8961

9062
/// <summary>
9163
/// Returns true if the superset is not empty and PageNumber is less than or equal to PageCount and this
9264
/// is the first subset within the superset.
9365
/// </summary>
94-
/// <value>
95-
/// Returns true if the superset is not empty and PageNumber is less than or equal to PageCount and this
96-
/// is the first subset within the superset.
97-
/// </value>
9866
bool IsFirstPage { get; }
9967

10068
/// <summary>
10169
/// Returns true if the superset is not empty and PageNumber is less than or equal to PageCount and this
10270
/// is the last subset within the superset.
10371
/// </summary>
104-
/// <value>
105-
/// Returns true if the superset is not empty and PageNumber is less than or equal to PageCount and this
106-
/// is the last subset within the superset.
107-
/// </value>
10872
bool IsLastPage { get; }
10973

11074
/// <summary>
11175
/// One-based index of the first item in the paged subset, zero if the superset is empty or PageNumber
11276
/// is greater than PageCount.
11377
/// </summary>
114-
/// <value>
115-
/// One-based index of the first item in the paged subset, zero if the superset is empty or PageNumber
116-
/// is greater than PageCount.
117-
/// </value>
11878
int FirstItemOnPage { get; }
11979

12080
/// <summary>
12181
/// One-based index of the last item in the paged subset, zero if the superset is empty or PageNumber
12282
/// is greater than PageCount.
12383
/// </summary>
124-
/// <value>
125-
/// One-based index of the last item in the paged subset, zero if the superset is empty or PageNumber
126-
/// is greater than PageCount.
127-
/// </value>
12884
int LastItemOnPage { get; }
12985
}

src/X.PagedList/PagedList.cs

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ namespace X.PagedList;
99
/// Represents a subset of a collection of objects that can be individually accessed by index and containing
1010
/// metadata about the superset collection of objects this subset was created from.
1111
/// </summary>
12-
/// <remarks>
13-
/// Represents a subset of a collection of objects that can be individually accessed by index and containing
14-
/// metadata about the superset collection of objects this subset was created from.
15-
/// </remarks>
1612
/// <typeparam name="T">The type of object the collection should contain.</typeparam>
1713
/// <seealso cref="IPagedList{T}"/>
1814
/// <seealso cref="BasePagedList{T}"/>

0 commit comments

Comments
 (0)