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

Update C# signal documentation and remove bind array #64930

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

raulsntos
Copy link
Member

@raulsntos raulsntos commented Aug 26, 2022

@raulsntos
Copy link
Member Author

raulsntos commented Aug 27, 2022

Marking as draft because there might still be changes to the C# Callable implementation (for starters, Callable.Bind is not implemented so this doc is currently wrong).

Edit: Changes to C# Callable (#67987) have been merged, but Callable.Bind is still not implemented so leaving as draft for now.

@MJacred

This comment was marked as off-topic.

doc/classes/Object.xml Outdated Show resolved Hide resolved
@akien-mga
Copy link
Member

Would be good to finalize and merge this soon :)

@raulsntos raulsntos marked this pull request as ready for review January 23, 2023 15:43
@raulsntos
Copy link
Member Author

Rebased and removed Bind and Unbind from the C# documentation since it's not implemented, we can add it back if/when it's added to C#.

- Updates C# signal documentation and code examples to the new API in 4.0
- Replace all `nameof` usages with the exposed `StringName`
{
GD.PrintS(arg1, arg2, arg3);
}

public void Test()
{
Callable callable = new Callable(this, nameof(PrintArgs));
callable.Call("hello", "world"); // Prints "hello world null".
// Invalid calls fail silently.
Copy link
Member Author

Choose a reason for hiding this comment

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

This is because of #59830.

@akien-mga akien-mga merged commit 4fa6edc into godotengine:master Jan 24, 2023
@akien-mga
Copy link
Member

Thanks!

@raulsntos raulsntos deleted the dotnet/docs branch January 24, 2023 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.0 C# Signal.Connect Doesn't Work as Documented in Object.Connect Documentation
4 participants