Skip to content

Commit 8f7180d

Browse files
committed
Use block-body methods in InputDevice
1 parent 93dc0ca commit 8f7180d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

dotnet/src/webdriver/Interactions/InputDevice.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ protected InputDevice(string deviceName)
6565
/// Creates a pause action for synchronization with other action sequences.
6666
/// </summary>
6767
/// <returns>The <see cref="Interaction"/> representing the action.</returns>
68-
public Interaction CreatePause() => this.CreatePause(TimeSpan.Zero);
68+
public Interaction CreatePause()
69+
{
70+
return this.CreatePause(TimeSpan.Zero);
71+
}
6972

7073
/// <summary>
7174
/// Creates a pause action for synchronization with other action sequences.
@@ -83,7 +86,10 @@ public Interaction CreatePause(TimeSpan duration)
8386
/// Returns a hash code for the current <see cref="InputDevice"/>.
8487
/// </summary>
8588
/// <returns>A hash code for the current <see cref="InputDevice"/>.</returns>
86-
public override int GetHashCode() => this.DeviceName.GetHashCode();
89+
public override int GetHashCode()
90+
{
91+
return this.DeviceName.GetHashCode();
92+
}
8793

8894
/// <summary>
8995
/// Returns a string that represents the current <see cref="InputDevice"/>.

0 commit comments

Comments
 (0)