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)
42
TempRoot.CreateStream(
_path
, FileMode.CreateNew);
62
return new FileStream(
_path
, FileMode.Open, access);
67
get { return
_path
; }
72
File.WriteAllText(
_path
, content, encoding);
78
File.WriteAllText(
_path
, content);
84
using (var sw = new StreamWriter(File.Create(
_path
), encoding))
99
File.WriteAllBytes(
_path
, content);
105
content.WriteToFile(
_path
);
111
return File.ReadAllText(
_path
);
116
return File.ReadAllBytes(
_path
);
126
return
_path
;