private static Dictionary<string, string> GetMetadataFromParams(string[] args)
{
Dictionary<string, string> result = new Dictionary<string, string>();
if (args.Length != 0)
{
if ((args.Length % 2) != 0)
{
Debug.WriteLine($"Invalid count of params: {args.Length}");
return null;
}
for (int i = 0; i < args.Length; i += 2)
{
result.Add(args[i], args[i + 1]);
}
}
result[VersionName] = s_appVersion.Value;
return result;
}
}