Skip to content

Commit aef7e51

Browse files
authored
docs: Fix delegate type name from Del to Callback (dotnet#49456)
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."
1 parent 657f067 commit aef7e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/programming-guide/delegates/using-delegates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ When a delegate is constructed to wrap an instance method, the delegate referenc
3939

4040
:::code language="csharp" source="./snippets/UsingDelegates.cs" id="InstanceMethods":::
4141

42-
Along with the static `DelegateMethod` shown previously, we now have three methods that you can wrap in a `Del` instance.
42+
Along with the static `DelegateMethod` shown previously, we now have three methods that you can wrap in a `Callback` instance.
4343

4444
A delegate can call more than one method when invoked, referred to as multicasting. To add an extra method to the delegate's list of methods—the invocation list—simply requires adding two delegates using the addition or addition assignment operators ('+' or '+='). For example:
4545

0 commit comments

Comments
 (0)