namespace ComputeSharp.NetStandard;
///
/// A polyfill type that mirrors some methods from on .NET 6.
///
internal static class Enum
{
///
/// Returns the name of the input enum value.
///
/// Specifies the type of the enum element.
/// The input enum value.
/// The name of .
public static string GetName(T value)
where T : unmanaged, global::System.Enum
{
return global::System.Enum.GetName(typeof(T), value)!;
}
}