private static bool AreRelated(TypeLibrary typeLibrary, Interface intf)
        {
            if ((intf == null) || (typeLibrary == null))
            {
                return(false);
            }

            if (string.IsNullOrEmpty(typeLibrary.Guid))
            {
                return(false);
            }

            return(string.Equals(typeLibrary.Guid, intf.TypeLibrary, StringComparison.OrdinalIgnoreCase) &&
                   string.Equals(typeLibrary.Version, intf.TlbVersion, StringComparison.OrdinalIgnoreCase));
        }
Beispiel #2
0
 private bool TypeLibraryFilter(TypeLibrary typeLibrary)
 {
     return(typeLibraryFilterPredicate(typeLibrary));
 }