Skip to content

Conversation

@satanmoo
Copy link
Contributor

@satanmoo satanmoo commented Oct 27, 2025

The document declares a delegate named Callback:

public delegate void Callback(string message);

However, later in the document it incorrectly refers to it as Del:

"we now have three methods that you can wrap in a Del instance"

This should be Callback to match the actual delegate declaration used throughout the example.

Summary

Fixed an inconsistency in the delegate documentation where Del was incorrectly used instead of Callback.


Internal previews

📄 File 🔗 Preview link
docs/csharp/programming-guide/delegates/using-delegates.md Using Delegates (C# Programming Guide)

The example declares a delegate named 'Callback' but later 
incorrectly refers to it as 'Del'. This commit fixes the 
inconsistency to use 'Callback' throughout the document."
@satanmoo satanmoo requested review from a team and BillWagner as code owners October 27, 2025 11:28
@dotnetrepoman dotnetrepoman bot added this to the October 2025 milestone Oct 27, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-csharp/svc fundamentals/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Oct 27, 2025
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

Thanks for catching this @satanmoo

This looks great, and I'll :shipit: now. You should see the changes on the live site in the next day or two, on our regular publishing cycle.

@BillWagner BillWagner merged commit aef7e51 into dotnet:main Oct 27, 2025
12 checks passed
@satanmoo satanmoo deleted the patch-1 branch October 27, 2025 15:46
@satanmoo
Copy link
Contributor Author

Thanks for the heads-up! I'm looking forward to seeing the changes live on the site.

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

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc fundamentals/subsvc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants