Пример #1
0
 public override string ToString()
 {
     return(string.IsNullOrWhiteSpace(Name) ? TypelibId.FormatGuid() : Name);
 }
Пример #2
0
 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();
 }