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

Fix C# typos: capitalize method name, use public property names #8879

Merged
merged 1 commit into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tutorials/scripting/c_sharp/c_sharp_exports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ Exporting works with fields and properties. They can have any access modifier.

Exported members can specify a default value; otherwise, the `default value of the type <https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/default-values>`_ is used instead.

An ``int`` like ``_number`` defaults to ``0``. ``_text`` defaults to null
because ``string`` is a reference type.
An ``int`` like ``Number`` defaults to ``0``. ``Text`` defaults to null because
``string`` is a reference type.

.. code-block:: csharp

Expand Down
2 changes: 1 addition & 1 deletion tutorials/scripting/cross_language_scripting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ because no C# static types exist for signals defined by GDScript:

.. code-block:: csharp

myGDScriptNode.Connect("my_signal", Callable.From(mySignalHandler));
myGDScriptNode.Connect("my_signal", Callable.From(MySignalHandler));

Inheritance
-----------
Expand Down