private static string BuildCLSIDToolTip(COMCLSIDEntry ent)
{
StringBuilder strRet = new StringBuilder();
AppendFormatLine(strRet, "CLSID: {0}", ent.Clsid.ToString("B"));
AppendFormatLine(strRet, "Name: {0}", ent.Name);
AppendFormatLine(strRet, "{0}: {1}", ent.ServerType.ToString(), ent.Server);
IEnumerable<string> progids = ent.ProgIDs;
if (progids.Count() > 0)
{
strRet.AppendLine("ProgIDs:");
foreach (string progid in progids)
{
AppendFormatLine(strRet, "{0}", progid);
}
}
if (ent.AppID != Guid.Empty)
{
AppendFormatLine(strRet, "AppID: {0}", ent.AppID.ToString("B"));
}
if (ent.TypeLib != Guid.Empty)
{
AppendFormatLine(strRet, "TypeLib: {0}", ent.TypeLib.ToString("B"));
}
IEnumerable<COMInterfaceEntry> proxies = ent.Proxies;
if (proxies.Count() > 0)
{
AppendFormatLine(strRet, "Interface Proxies: {0}", proxies.Count());
}
return strRet.ToString();
}