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

Treewide: Provide specific namespace for Extensions (again) #298

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

adschmu
Copy link
Contributor

@adschmu adschmu commented Oct 7, 2024

As discussed in [1], using a separate namespace for Extensions has several advantages. Unfortunately, the dedicated namespace for the PagedListExtensions has been removed during the package name rearrangements and not added back after.

This commit adds it back and essentially reverts the namespace scheme to where it was in v10.0.3, like already done for the rest of the code.

To indicate this more prominently, the PagedListExtensions.cs class is moved into an "Extensions" subfolder, so the namespace now also matches the folder structure.

From the released packages, this affects X.PagedList and X.PagedList.Mvc.Core.

[1] 6ae094e ("Treewide: Provide specific namespaces for Extensions")

Fixes: #290

As discussed in [1], using a separate namespace for Extensions has several
advantages. Unfortunately, the dedicated namespace for the PagedListExtensions
has been removed during the package name rearrangements and not added back
after.

This commit adds it back and essentially reverts the namespace scheme to
where it was in v10.0.3, like already done for the rest of the code.

To indicate this more prominently, the PagedListExtensions.cs class is moved
into an "Extensions" subfolder, so the namespace now also matches the folder
structure.

From the released packages, this affects X.PagedList and X.PagedList.Mvc.Core.

[1] 6ae094e ("Treewide: Provide specific namespaces for Extensions")

Fixes: dncuug#290
@a-gubskiy a-gubskiy merged commit babc167 into dncuug:master Oct 12, 2024
3 checks passed
@a-gubskiy
Copy link
Member

Thank you! I will include it in next pre-release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

X.PagedList: Add back the Extensions sub-namespace for extensions
2 participants