2 writes to _path
Microsoft.CodeAnalysis.Test.Utilities (2)
TempFiles\TempFile.cs (2)
26_path = path; 38_path = System.IO.Path.Combine(directory ?? TempRoot.Root, prefix + Guid.NewGuid() + (extension ?? ".tmp"));
11 references to _path
Microsoft.CodeAnalysis.Test.Utilities (11)
TempFiles\TempFile.cs (11)
42TempRoot.CreateStream(_path, FileMode.CreateNew); 62return new FileStream(_path, FileMode.Open, access); 67get { return _path; } 72File.WriteAllText(_path, content, encoding); 78File.WriteAllText(_path, content); 84using (var sw = new StreamWriter(File.Create(_path), encoding)) 99File.WriteAllBytes(_path, content); 105content.WriteToFile(_path); 111return File.ReadAllText(_path); 116return File.ReadAllBytes(_path); 126return _path;