Skip to content

Commit f7836a7

Browse files
committed
typo: hander -> handler
Related to dotnet/dotnet-api-docs#2155
1 parent 62956bc commit f7836a7

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

snippets/csharp/VS_Snippets_CFX/s_ueexceptionhandler/cs/program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Program
3232
// <snippet1>
3333
static void Main(string[] args)
3434
{
35-
// Create an instance of the MyExceptionHander class.
35+
// Create an instance of the MyExceptionHandler class.
3636
MyExceptionHandler thisExceptionHandler =
3737
new MyExceptionHandler();
3838

snippets/csharp/VS_Snippets_VBCSharp/csProgGuideDelegates/CS/Delegates.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ public Form1()
430430

431431
}
432432

433-
// Event hander for any event with an EventArgs or
433+
// Event handler for any event with an EventArgs or
434434
// derived class in the second parameter
435435
private void MultiHandler(object sender, System.EventArgs e)
436436
{
@@ -721,4 +721,4 @@ The Unicode Standard 2.0
721721
*/
722722
//</Snippet12>
723723
}
724-
}
724+
}

snippets/csharp/VS_Snippets_VBCSharp/csvariance/cs/form1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public partial class Form1 : Form
1515
Label label1 = new Label();
1616
Button button1 = new Button();
1717
//<Snippet200>
18-
// Event hander that accepts a parameter of the EventArgs type.
18+
// Event handler that accepts a parameter of the EventArgs type.
1919
private void MultiHandler(object sender, System.EventArgs e)
2020
{
2121
label1.Text = System.DateTime.Now.ToString();
@@ -70,4 +70,4 @@ static void Test()
7070
}
7171
//</Snippet201>
7272

73-
}
73+
}

snippets/csharp/VS_Snippets_Wpf/CommandingOverviewSnippets/CSharp/Window1.xaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private void CanExecuteCustomCommand(object sender,
189189
//</SnippetCommandingOverviewCanExecute>
190190

191191

192-
//<SnippetCommandingOverviewMultipleCmdHander>
192+
//<SnippetCommandingOverviewMultipleCmdHandler>
193193
private void ExecutedDisplayCommand(object sender,
194194
ExecutedRoutedEventArgs e)
195195
{
@@ -211,7 +211,7 @@ private void ExecutedDisplayCommand(object sender,
211211
}
212212
}
213213
}
214-
//</SnippetCommandingOverviewMultipleCmdHander>
214+
//</SnippetCommandingOverviewMultipleCmdHandler>
215215

216216
//<SnippetCommandingOverviewMultipleCanExecute>
217217
private void CanExecuteDisplayCommand(object sender,
@@ -383,4 +383,4 @@ private void DoEvent(object e)
383383
public delegate string NoArgDelegate();
384384
}
385385
//</SnippetThreadingArticleWeatherComponent2>
386-
}
386+
}

snippets/visualbasic/VS_Snippets_CFX/s_ueexceptionhandler/vb/module1.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Namespace CS
2929
Module Module1
3030
' <snippet1>
3131
Sub Main(ByVal args() As String)
32-
' Create an instance of the MyExceptionHander class.
32+
' Create an instance of the MyExceptionHandler class.
3333
Dim thisExceptionHandler As New MyExceptionHandler()
3434

3535
' Enable the custom handler by setting

snippets/visualbasic/VS_Snippets_CLR/portableclasslibrarymvvm/vb/relaycommand.vb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Namespace SimpleMVVM.ViewModel
99
Private _isEnabled As Boolean
1010
Private ReadOnly _handler As Action
1111

12-
Public Sub New(ByVal hander As Action)
13-
_handler = hander
12+
Public Sub New(ByVal handler As Action)
13+
_handler = handler
1414
End Sub
1515

1616
Public Event CanExecuteChanged As EventHandler Implements ICommand.CanExecuteChanged
@@ -37,4 +37,4 @@ Namespace SimpleMVVM.ViewModel
3737

3838
End Class
3939
End Namespace
40-
' </snippet4>
40+
' </snippet4>

snippets/visualbasic/VS_Snippets_VBCSharp/csvariance/vb/form1.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Dim Button1 As Button
44

55
'<Snippet200>
6-
' Event hander that accepts a parameter of the EventArgs type.
6+
' Event handler that accepts a parameter of the EventArgs type.
77
Private Sub MultiHandler(ByVal sender As Object,
88
ByVal e As System.EventArgs)
99
Label1.Text = DateTime.Now

snippets/visualbasic/VS_Snippets_Wpf/CommandingOverviewSnippets/visualbasic/window1.xaml.vb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Namespace SDKSamples
164164
'</SnippetCommandingOverviewCanExecute>
165165

166166

167-
'<SnippetCommandingOverviewMultipleCmdHander>
167+
'<SnippetCommandingOverviewMultipleCmdHandler>
168168
Private Sub ExecutedDisplayCommand(ByVal sender As Object, ByVal e As ExecutedRoutedEventArgs)
169169
Dim command As RoutedCommand = TryCast(e.Command, RoutedCommand)
170170

@@ -180,7 +180,7 @@ Namespace SDKSamples
180180
End If
181181
End If
182182
End Sub
183-
'</SnippetCommandingOverviewMultipleCmdHander>
183+
'</SnippetCommandingOverviewMultipleCmdHandler>
184184

185185
'<SnippetCommandingOverviewMultipleCanExecute>
186186
Private Sub CanExecuteDisplayCommand(ByVal sender As Object, ByVal e As CanExecuteRoutedEventArgs)
@@ -325,4 +325,4 @@ Namespace SDKSamples
325325
Public Delegate Function NoArgDelegate() As String
326326
End Class
327327
'</SnippetThreadingArticleWeatherComponent2>
328-
End Namespace
328+
End Namespace

0 commit comments

Comments
 (0)