File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
AdvancedSharpAdbClient/DeviceCommands Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ namespace AdvancedSharpAdbClient.DeviceCommands
19
19
/// <param name="AdbClient">The <see cref="IAdbClient"/> to use to communicate with the Android Debug Bridge.</param>
20
20
/// <param name="Device">The device on which to process command.</param>
21
21
[ DebuggerDisplay ( $ "{{{nameof(ToString)}(),nq}}") ]
22
- public partial record class DeviceClient ( IAdbClient AdbClient , DeviceData Device )
22
+ public partial record class DeviceClient ( IAdbClient AdbClient , DeviceData Device ) : ICloneable < DeviceClient > , ICloneable
23
23
{
24
24
/// <summary>
25
25
/// The <see cref="IAdbClient"/> to use when communicating with the device.
@@ -443,6 +443,12 @@ public void Deconstruct(out IAdbClient client, out DeviceData device)
443
443
device = Device ;
444
444
}
445
445
446
+ /// <inheritdoc/>
447
+ DeviceClient ICloneable < DeviceClient > . Clone ( ) => this with { } ;
448
+
449
+ /// <inheritdoc/>
450
+ object ICloneable . Clone ( ) => ( ( ICloneable < DeviceClient > ) this ) . Clone ( ) ;
451
+
446
452
#if ! NET40_OR_GREATER && ! NETCOREAPP2_0_OR_GREATER && ! NETSTANDARD2_0_OR_GREATER && ! UAP10_0_15138_0
447
453
/// <inheritdoc/>
448
454
public override int GetHashCode ( ) => HashCode . Combine ( EqualityContract , AdbClient , Device ) ;
You can’t perform that action at this time.
0 commit comments