protected XmlFileBase(FileInfo path, FileIndex fileIndex) { if (path == null) { throw new ArgumentNullException(nameof(path)); } if (fileIndex == null && (this is FileIndex == false)) { throw new ArgumentNullException(nameof(fileIndex)); } FilePath = path; FileIndex = fileIndex; InitDocument(); }