Skip to content

Add clarification for Godot.Collections.Dicitionary erase function in C# #12397

Description

@zachariahchandler

Your Godot version:
Latest stable (4.7.2) (issue true in all versions of docs as far as I can tell)

Issue description:
Godot Dictionary erase function is called with Remove in C#, which follows C# Dictionary conventions, but not GDScript -> C# conventions; I would expect this function to be called Erase in C#. Perhaps C# clarification would help.

URL to the documentation page:
https://docs.godotengine.org/en/stable/classes/class_dictionary.html#class-dictionary-method-erase

I understand the logic of using Remove instead of Erase, but it's not documented, and it threw me for a loop as someone used to following the usual GDScript -> C# translation whereby functions share the same name but use different capitalisation. Not a problem so long as it's documented.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:class referenceIssues and PRs about the class reference, which should be addressed on the Godot engine repositoryenhancementtopic:dotnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions