Skip to content

Panicking ByName/IndexOf/IndexByName, separate Try- methods for null/-1#2403

Open
BioTomateDE wants to merge 3 commits into
UnderminersTeam:masterfrom
BioTomateDE:trybyname
Open

Panicking ByName/IndexOf/IndexByName, separate Try- methods for null/-1#2403
BioTomateDE wants to merge 3 commits into
UnderminersTeam:masterfrom
BioTomateDE:trybyname

Conversation

@BioTomateDE

Copy link
Copy Markdown
Contributor

The UndertaleData methods and extensions ByName(), IndexOf and IndexOfByName (now called IndexByName) now throw an exception when the element could not be found. The old behavior of returning null/-1 is still available via TryByName, TryIndexOf and TryIndexByName.

Caveats

This is a breaking change.

Notes

i fixed all the csx scripts (hopefully)

@github-actions

Copy link
Copy Markdown

@colinator27 colinator27 added this to the Possible for 0.9.x milestone Jul 2, 2026
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