Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Program
// <snippet1>
static void Main(string[] args)
{
// Create an instance of the MyExceptionHander class.
// Create an instance of the MyExceptionHandler class.
MyExceptionHandler thisExceptionHandler =
new MyExceptionHandler();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public Form1()

}

// Event hander for any event with an EventArgs or
// Event handler for any event with an EventArgs or
// derived class in the second parameter
private void MultiHandler(object sender, System.EventArgs e)
{
Expand Down Expand Up @@ -721,4 +721,4 @@ The Unicode Standard 2.0
*/
//</Snippet12>
}
}
}
4 changes: 2 additions & 2 deletions snippets/csharp/VS_Snippets_VBCSharp/csvariance/cs/form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial class Form1 : Form
Label label1 = new Label();
Button button1 = new Button();
//<Snippet200>
// Event hander that accepts a parameter of the EventArgs type.
// Event handler that accepts a parameter of the EventArgs type.
private void MultiHandler(object sender, System.EventArgs e)
{
label1.Text = System.DateTime.Now.ToString();
Expand Down Expand Up @@ -70,4 +70,4 @@ static void Test()
}
//</Snippet201>

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private void CanExecuteCustomCommand(object sender,
//</SnippetCommandingOverviewCanExecute>


//<SnippetCommandingOverviewMultipleCmdHander>
//<SnippetCommandingOverviewMultipleCmdHandler>
private void ExecutedDisplayCommand(object sender,
ExecutedRoutedEventArgs e)
{
Expand All @@ -211,7 +211,7 @@ private void ExecutedDisplayCommand(object sender,
}
}
}
//</SnippetCommandingOverviewMultipleCmdHander>
//</SnippetCommandingOverviewMultipleCmdHandler>

//<SnippetCommandingOverviewMultipleCanExecute>
private void CanExecuteDisplayCommand(object sender,
Expand Down Expand Up @@ -383,4 +383,4 @@ private void DoEvent(object e)
public delegate string NoArgDelegate();
}
//</SnippetThreadingArticleWeatherComponent2>
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Namespace CS
Module Module1
' <snippet1>
Sub Main(ByVal args() As String)
' Create an instance of the MyExceptionHander class.
' Create an instance of the MyExceptionHandler class.
Dim thisExceptionHandler As New MyExceptionHandler()

' Enable the custom handler by setting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Namespace SimpleMVVM.ViewModel
Private _isEnabled As Boolean
Private ReadOnly _handler As Action

Public Sub New(ByVal hander As Action)
_handler = hander
Public Sub New(ByVal handler As Action)
_handler = handler
End Sub

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

End Class
End Namespace
' </snippet4>
' </snippet4>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Dim Button1 As Button

'<Snippet200>
' Event hander that accepts a parameter of the EventArgs type.
' Event handler that accepts a parameter of the EventArgs type.
Private Sub MultiHandler(ByVal sender As Object,
ByVal e As System.EventArgs)
Label1.Text = DateTime.Now
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Namespace SDKSamples
'</SnippetCommandingOverviewCanExecute>


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

Expand All @@ -180,7 +180,7 @@ Namespace SDKSamples
End If
End If
End Sub
'</SnippetCommandingOverviewMultipleCmdHander>
'</SnippetCommandingOverviewMultipleCmdHandler>

'<SnippetCommandingOverviewMultipleCanExecute>
Private Sub CanExecuteDisplayCommand(ByVal sender As Object, ByVal e As CanExecuteRoutedEventArgs)
Expand Down Expand Up @@ -325,4 +325,4 @@ Namespace SDKSamples
Public Delegate Function NoArgDelegate() As String
End Class
'</SnippetThreadingArticleWeatherComponent2>
End Namespace
End Namespace