コード例 #1
0
 public static IEnumerable <ServiceDescriptor> Except(
     this IEnumerable <ServiceDescriptor> serviceDescriptors,
     ServiceDescriptorExceptionCollection exceptionList,
     IEqualityComparer <ServiceDescriptor> equalityComparer)
 {
     return(serviceDescriptors.Where(d => !exceptionList.Contains(d, equalityComparer)));
 }
コード例 #2
0
 public static IEnumerable <ServiceDescriptor> Except(
     this IEnumerable <ServiceDescriptor> serviceDescriptors,
     ServiceDescriptorExceptionCollection exceptionList)
 {
     return(serviceDescriptors.Where(d => !exceptionList.Contains(d)));
 }