protected override bool Match(AssemblyName probeAssmName, AssemblyName searchAssmName)
 {
     return((probeAssmName.Name == searchAssmName.Name) &&
            (!m_MatchFilter.HasFlag(AssemblyMatchFilter_e.PublicKeyToken) || GetPublicKeyToken(probeAssmName) == GetPublicKeyToken(searchAssmName)) &&
            (!m_MatchFilter.HasFlag(AssemblyMatchFilter_e.Culture) || probeAssmName.CultureName == probeAssmName.CultureName) &&
            (!m_MatchFilter.HasFlag(AssemblyMatchFilter_e.Version) || probeAssmName.Version == searchAssmName.Version));
 }
Exemplo n.º 2
0
 protected override bool Match(AssemblyName probeAssmName, AssemblyName searchAssmName)
 {
     if (m_AssemblyNameFilters?.Any() != true ||
         m_AssemblyNameFilters.Contains(searchAssmName.Name, StringComparer.CurrentCultureIgnoreCase))
     {
         return((probeAssmName.Name == searchAssmName.Name) &&
                (!m_MatchFilter.HasFlag(AssemblyMatchFilter_e.PublicKeyToken) || GetPublicKeyToken(probeAssmName) == GetPublicKeyToken(searchAssmName)) &&
                (!m_MatchFilter.HasFlag(AssemblyMatchFilter_e.Culture) || probeAssmName.CultureName == probeAssmName.CultureName) &&
                (!m_MatchFilter.HasFlag(AssemblyMatchFilter_e.Version) || probeAssmName.Version == searchAssmName.Version));
     }
     else
     {
         return(false);
     }
 }