IDE0008-显式类型

This commit is contained in:
YFdyh000
2020-03-15 03:25:40 +08:00
parent 56c3c22568
commit 67b99c4c8b
24 changed files with 131 additions and 131 deletions
+4 -4
View File
@@ -35,7 +35,7 @@ namespace v2rayUpgrade
Process[] existing = Process.GetProcessesByName("v2rayN");
foreach (Process p in existing)
{
var path = p.MainModule.FileName;
string path = p.MainModule.FileName;
if (path == GetPath("v2rayN.exe"))
{
p.Kill();
@@ -49,7 +49,7 @@ namespace v2rayUpgrade
return;
}
var fileName = GetPath(_tempFileName);
string fileName = GetPath(_tempFileName);
try
{
File.Delete(fileName);
@@ -60,7 +60,7 @@ namespace v2rayUpgrade
return;
}
var startKey = "v2rayN/";
string startKey = "v2rayN/";
using (ZipArchive archive = ZipFile.OpenRead(fileName))
{
@@ -70,7 +70,7 @@ namespace v2rayUpgrade
{
continue;
}
var fullName = entry.FullName;
string fullName = entry.FullName;
if (fullName.StartsWith(startKey))
{
fullName = fullName.Substring(startKey.Length, fullName.Length - startKey.Length);