5 references to CreateFileStreamChecked
Microsoft.CodeAnalysis (5)
Compilation.EmitStream.cs (1)
148
tempStream = FileUtilities.
CreateFileStreamChecked
(streamConstructor, tempFilePath);
FileSystemExtensions.cs (4)
46
using (var outputStream = FileUtilities.
CreateFileStreamChecked
(File.Create, outputPath, nameof(outputPath)))
47
using (var pdbStream = (pdbPath == null ? null : FileUtilities.
CreateFileStreamChecked
(File.Create, pdbPath, nameof(pdbPath))))
48
using (var xmlDocStream = (xmlDocPath == null ? null : FileUtilities.
CreateFileStreamChecked
(File.Create, xmlDocPath, nameof(xmlDocPath))))
49
using (var win32ResourcesStream = (win32ResourcesPath == null ? null : FileUtilities.
CreateFileStreamChecked
(File.OpenRead, win32ResourcesPath, nameof(win32ResourcesPath))))