public COMTypeLibVersionEntry(COMRegistry registry, ActCtxComTypeLibraryRedirection typelib_redirection)
     : this(registry, typelib_redirection.TypeLibraryId)
 {
     Name      = TypelibId.FormatGuid();
     Win32Path = typelib_redirection.FullPath;
     Win64Path = typelib_redirection.FullPath;
     Source    = COMRegistryEntrySource.ActCtx;
 }
 internal COMTypeLibEntry(COMRegistry registry, ActCtxComTypeLibraryRedirection typelib_redirection)
     : this(registry)
 {
     TypelibId = typelib_redirection.TypeLibraryId;
     Name      = TypelibId.FormatGuid();
     List <COMTypeLibVersionEntry> versions = new List <COMTypeLibVersionEntry>();
     versions.Add(new COMTypeLibVersionEntry(registry, typelib_redirection));
     Versions = versions.AsReadOnly();
     Source   = COMRegistryEntrySource.ActCtx;
 }
 public int CompareTo(COMTypeLibEntry other)
 {
     return(TypelibId.CompareTo(other.TypelibId));
 }
 public override int GetHashCode()
 {
     return(TypelibId.GetHashCode() ^ Versions.GetEnumHashCode());
 }
Beispiel #5
0
 public override string ToString()
 {
     return(string.IsNullOrWhiteSpace(Name) ? TypelibId.FormatGuid() : Name);
 }
Beispiel #6
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();
 }