replace v6 with experimental v7 code

This commit is contained in:
stax76
2023-10-24 11:17:45 +02:00
parent fb27bb8727
commit 5706d7b66d
212 changed files with 15014 additions and 12173 deletions

11
src/MpvNet/AppInfo.cs Normal file
View File

@@ -0,0 +1,11 @@

using System.Reflection;
namespace MpvNet;
public static class AppInfo
{
public static string Product => GetAssemblyAttribute<AssemblyProductAttribute>().Product;
public static Version Version => Assembly.GetEntryAssembly()!.GetName().Version!;
static T GetAssemblyAttribute<T>() => (T)(object)Assembly.GetEntryAssembly()!.GetCustomAttributes(typeof(T)).First();
}