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