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

Top Level Groups Enumeration #563

Merged
merged 6 commits into from
Oct 19, 2024
Merged

Conversation

some1one
Copy link

+added WhereNotNull IEnumerable Extension
+added GetTopLevelMajorRecordTypes to MajorRecordTypeEnumerator
+added to cheatsheat
*changed cache list type to immutableArray

@some1one
Copy link
Author

rebased on dev and removed the doc commits from the other pull request

Copy link
Member

@Noggog Noggog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase went a bit weird and some commits got in both, but all good!
image

Only thing I'd say is maybe (re)move the null extension, and should be good to go!

@@ -4,6 +4,11 @@ namespace Mutagen.Bethesda;

internal static class EnumerableExt
{
public static IEnumerable<T> WhereNotNull<T>(this IEnumerable<T?> enumer)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already got an extension like this over in https://github.com/Noggog/CSharpExt/blob/89a5e0918ae8a212b592b890a5b62ca1209f2120/Noggog.CSharpExt/Extensions/EnumerableExt.cs#L257

But I do like the Where__ naming better. Feel free to open a PR over there, and mark the old ones obsolete

@Noggog
Copy link
Member

Noggog commented Oct 19, 2024

Ah, i can handle the small tweaks. Like i mentioned, gonna remove the new WhereNotNull method, but feel free to add to CSharpExt if you feel inspired to do so

@Noggog Noggog merged commit f711919 into Mutagen-Modding:dev Oct 19, 2024
3 checks passed
@some1one some1one deleted the top-groups branch October 19, 2024 21:28
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

Successfully merging this pull request may close these issues.

2 participants