mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 11:14:45 +00:00
Use collection expression syntax.
This commit is contained in:
@@ -52,11 +52,7 @@ public static class Version
|
||||
{
|
||||
Assembly assembly = typeof(GCSettings).Assembly;
|
||||
|
||||
string[] assemblyPath = assembly.Location.Split(new[]
|
||||
{
|
||||
'/', '\\'
|
||||
},
|
||||
StringSplitOptions.RemoveEmptyEntries);
|
||||
string[] assemblyPath = assembly.Location.Split(['/', '\\'], StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
int netCoreAppIndex = Array.IndexOf(assemblyPath, "Microsoft.NETCore.App");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user