Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 11 #282

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<Copyright>Andrew Gubskiy © 2024</Copyright>
<Company>Ukrainian .NET Developer Community</Company>

<Version>10.5.0-pre</Version>
<AssemblyVersion>10.5.0</AssemblyVersion>
<FileVersion>10.5.0</FileVersion>
<PackageVersion>10.5.0-pre</PackageVersion>
<Version>11.0.1</Version>
<AssemblyVersion>11.0.1</AssemblyVersion>
<FileVersion>11.0.1</FileVersion>
<PackageVersion>11.0.1-pre</PackageVersion>

<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/dncuug/X.PagedList.git</RepositoryUrl>
Expand Down
5 changes: 2 additions & 3 deletions src/X.PagedList/BasePagedList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ protected internal BasePagedList(int pageNumber, int pageSize, int totalItemCoun

if (totalItemCount < 0)
{
throw new ArgumentOutOfRangeException(
$"totalItemCount = {totalItemCount}. TotalItemCount cannot be less than 0.");
throw new ArgumentOutOfRangeException($"totalItemCount = {totalItemCount}. TotalItemCount cannot be less than 0.");
}

// set source to blank list if superset is null to prevent exceptions
Expand Down Expand Up @@ -172,5 +171,5 @@ IEnumerator IEnumerable.GetEnumerator()
///</summary>
///<returns>A non-enumerable copy of this paged list.</returns>
[Obsolete("This method will be removed in future versions")]
public PagedListMetaData GetMetaData() => new(this);
public IPagedList GetMetaData() => new StaticPagedList<T>(new List<T>(), this);
}
2 changes: 1 addition & 1 deletion src/X.PagedList/IPagedList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public interface IPagedList<out T> : IPagedList, IReadOnlyList<T>
///</summary>
///<returns>A non-enumerable copy of this paged list.</returns>
[Obsolete("This method will be removed in future versions")]
PagedListMetaData GetMetaData();
IPagedList GetMetaData();
}

/// <summary>
Expand Down
93 changes: 0 additions & 93 deletions src/X.PagedList/PagedListMetaData.cs

This file was deleted.

Loading