更新时间:2023-11-25 23:01:28
您可以使用此
if (String.IsNullOrEmpty(this.LogFile1))
{
string fn = "LogFile";
while (File.Exists(fn))
{
fn = fn + "1";
}
this.LogFile1 = fn;
}
return this.LogFile1;