public static AddinScanFolderInfo Read(FileDatabase filedb, string file) { AddinScanFolderInfo finfo = (AddinScanFolderInfo)filedb.ReadSharedObject(file, typeMap); if (finfo != null) { finfo.fileName = file; } return(finfo); }
public static AddinScanFolderInfo Read(FileDatabase filedb, string basePath, string folderPath) { string fileName; AddinScanFolderInfo finfo = (AddinScanFolderInfo)filedb.ReadSharedObject(basePath, GetDomain(folderPath), ".data", Path.GetFullPath(folderPath), typeMap, out fileName); if (finfo != null) { finfo.fileName = fileName; } return(finfo); }
public void Write(FileDatabase fileDatabase, string file) { fileDatabase.WriteObject(file, this, typeMap); }
public void Write(FileDatabase filedb, string basePath) { filedb.WriteSharedObject(basePath, GetDomain(folder), ".data", Path.GetFullPath(folder), fileName, typeMap, this); }
public static AddinHostIndex Read(FileDatabase fileDatabase, string file) { return((AddinHostIndex)fileDatabase.ReadObject(file, typeMap)); }