예제 #1
0
 public void Write(string fileName, WriterParameters parameters)
 {
     using (Stream fileStream = ModuleDefinition.GetFileStream(fileName, FileMode.Create, FileAccess.ReadWrite, FileShare.None))
     {
         this.Write(fileStream, parameters);
     }
 }
예제 #2
0
        public static ModuleDefinition ReadModule(string fileName, ReaderParameters parameters)
        {
            ModuleDefinition result;

            using (Stream fileStream = ModuleDefinition.GetFileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read))
            {
                result = ModuleDefinition.ReadModule(fileStream, parameters);
            }
            return(result);
        }