public override string ToString() { return(string.IsNullOrWhiteSpace(Name) ? TypelibId.FormatGuid() : Name); }
internal COMTypeLibEntry(COMRegistry registry, COMPackagedTypeLibEntry typelib) : this(registry) { TypelibId = typelib.TypeLibId; Source = COMRegistryEntrySource.Packaged; Versions = typelib.Versions.Select(v => new COMTypeLibVersionEntry(registry, typelib.TypeLibId, v)).ToList(); Name = Versions.Select(v => v.Name).FirstOrDefault(v => !string.IsNullOrWhiteSpace(v)) ?? TypelibId.FormatGuid(); }