Skip to content

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

Open

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

  1. AThousandShips commented on Sep 22, 2026

    @AThousandShips
    Member

    This is documented here which is linked at the top of the page for Dictionary, we don't document each individual difference

  2. zachariahchandler commented on Sep 23, 2026

    @zachariahchandler
    Author

    There's a link to the C# API differences page which then subsequently links to the Dictionary subsection of the C# collections page, as you've linked above. If this is the desired flow then no worries I guess, but I feel like a direct link would be better.

  3. AThousandShips commented on Sep 23, 2026

    @AThousandShips
    Member
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