示例#1
0
        public bool Open(string filename, Stream stream = null)
        {
            _filename = filename;
            _stream = stream ?? File.OpenRead(filename);

            Name = Path.GetFileNameWithoutExtension(filename);

            _import = _importDetector.GetImportDetector(_filename);
            return _import != null;
        }
示例#2
0
 public ImportDetector(IImportDetector[] importDetectors)
 {
     _importDetectors = importDetectors;
 }