نکته شماره 23 :

 

ایجاد یک نام تصادفی
 
string randomFileName = System.IO.Path.GetRandomFileName();
 
 
ایجاد یک نام منحصر به فرد
 
string tfile = Path.GetTempFileName();