Limit HashCode compatibility helper to netf

This commit is contained in:
Archi
2021-08-02 21:51:21 +02:00
parent 929d57709a
commit 93a8af71e9

View File

@@ -19,16 +19,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#if NETFRAMEWORK
using JetBrains.Annotations;
namespace ArchiSteamFarm.Compatibility {
[PublicAPI]
public static class HashCode {
public static int Combine<T1, T2, T3>(T1 value1, T2 value2, T3 value3) =>
#if NETFRAMEWORK
(value1, value2, value3).GetHashCode();
#else
System.HashCode.Combine(value1, value2, value3);
#endif
public static int Combine<T1, T2, T3>(T1 value1, T2 value2, T3 value3) => (value1, value2, value3).GetHashCode();
}
}
#endif