-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12cdb1b
commit 7268203
Showing
12 changed files
with
178 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// <copyright file="ICloneable.cs" company="The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere"> | ||
// Copyright (c) The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere. All rights reserved. | ||
// </copyright> | ||
|
||
using System; | ||
|
||
#if !NETFRAMEWORK && !NETCOREAPP2_0_OR_GREATER && !NETSTANDARD2_0_OR_GREATER && !UAP10_0_15138_0 | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
namespace System | ||
{ | ||
/// <summary> | ||
/// Supports cloning, which creates a new instance of a class with the same value as an existing instance. | ||
/// </summary> | ||
internal interface ICloneable | ||
{ | ||
/// <summary> | ||
/// Creates a new object that is a copy of the current instance. | ||
/// </summary> | ||
/// <returns>A new object that is a copy of this instance.</returns> | ||
object Clone(); | ||
} | ||
} | ||
|
||
namespace AdvancedSharpAdbClient.Polyfills | ||
{ | ||
/// <summary> | ||
/// Supports cloning, which creates a new instance of a class with the same value as an existing instance. | ||
/// </summary> | ||
/// <typeparam name="T">The type of the class.</typeparam> | ||
public interface ICloneable<T> | ||
{ | ||
/// <summary> | ||
/// Creates a new <typeparamref name="T"/> object that is a copy of the current instance. | ||
/// </summary> | ||
/// <returns>A new <typeparamref name="T"/> object that is a copy of this instance.</returns> | ||
T Clone(); | ||
} | ||
} | ||
#else | ||
namespace AdvancedSharpAdbClient.Polyfills | ||
{ | ||
/// <summary> | ||
/// Supports cloning, which creates a new instance of a class with the same value as an existing instance. | ||
/// </summary> | ||
/// <typeparam name="T">The type of the class.</typeparam> | ||
public interface ICloneable<T> : ICloneable | ||
{ | ||
/// <summary> | ||
/// Creates a new <typeparamref name="T"/> object that is a copy of the current instance. | ||
/// </summary> | ||
/// <returns>A new <typeparamref name="T"/> object that is a copy of this instance.</returns> | ||
new T Clone(); | ||
} | ||
} | ||
#endif |
5 changes: 3 additions & 2 deletions
5
AdvancedSharpAdbClient/Polyfills/Interfaces/IDisposableWithTask.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters