Пример #1
0
        Stream ISupportingFiles.Open(string fileName, bool create)
        {
            ISupportingFiles files = this as ISupportingFiles;

            if (!files.Contains(fileName))
            {
                using (MemoryStream emptyStream = new MemoryStream())
                    _extensionData.AddFile(fileName, emptyStream);
            }

            return(_extensionData.GetFileStream(fileName));
        }
Пример #2
0
 public bool Contains(string fileName)
 {
     return(SupportingFilesRaw.Contains(fileName));
 }