Add .NET Standard 2.0 target to ComputeSharp

Also switch TerraFX.Interop.Windows to shared project
このコミットが含まれているのは:
Sergio Pedri committed 2021-11-16 17:34:01 +01:00
1 親 78f68f7b8c
コミット 06ce524740
66ファイル変更
+1276 -178

検索条件に一致するファイルはありません

+19
ファイルの表示
@@ -0,0 +1,19 @@
namespace ComputeSharp.NetStandard.System;
/// <summary>
/// A polyfill type that mirrors some methods from <see cref="global::System.Enum"/> on .NET 6.
/// </summary>
internal static class Enum
{
/// <summary>
/// Returns the name of the input enum value.
/// </summary>
/// <typeparam name="T">Specifies the type of the enum element.</typeparam>
/// <param name="value">The input enum value.</param>
/// <returns>The name of <paramref name="value"/>.</returns>
public static string GetName<T>(T value)
where T : unmanaged, global::System.Enum
{
return global::System.Enum.GetName(typeof(T), value);
}
}