public static AddinPackage FromInstalledAddin(Addin sinfo) { AddinPackage pack = new AddinPackage(); pack.info = AddinInfo.ReadFromDescription(sinfo.Description); return(pack); }
/// <summary> /// Gets information about an add-in /// </summary> /// <param name="addin"> /// The add-in /// </param> /// <returns> /// Add-in header data /// </returns> public static AddinHeader GetAddinHeader(Addin addin) { return(AddinInfo.ReadFromDescription(addin.Description)); }