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

Make ElementModelProvider class public #252

Open
mattnield opened this issue Sep 27, 2023 · 0 comments
Open

Make ElementModelProvider class public #252

mattnield opened this issue Sep 27, 2023 · 0 comments
Assignees

Comments

@mattnield
Copy link

I've had to create a copy of this class in my own code in order to work with content-type elements in LanguageVariantModels. This is because I don't want to use generated content models for the piece of work.
In particular, I'm working on translation integration. I don't want that integration to be tied to the content model and therefore be hampered by changes to that model.

Using this method seems to be the only reasonable way to work with the element collection, so I really think it shouldn't be marked as internal.

public T GetStronglyTypedElements<T>(IEnumerable<dynamic> elements) where T : new()

@pokornyd pokornyd self-assigned this Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants