Exemple #1
0
 public override IEnumerator <T> GetEnumerator()
 {
     if (notifyEnumerable != null)
     {
         return(notifyEnumerable.GetEnumerator());
     }
     return(SL.Except(Source, Other, Comparer).GetEnumerator());
 }
Exemple #2
0
    public void BlinqShouldEqualLinqNativeArrayExcept([ArrayValues] int[] sourceArr, [ArrayValues] int[] secondArr)
    {
        var source   = new NativeArray <int>(sourceArr, Allocator.Persistent);
        var second   = new NativeArray <int>(secondArr, Allocator.Persistent);
        var expected = ExceptionAndValue(() => Linq.ToArray(Linq.Except(source, second)));
        var actual   = ExceptionAndValue(() => Linq.ToArray(Blinq.Except(source, second)));

        AssertAreEqual(expected, actual);
        source.Dispose();
        second.Dispose();
    }
Exemple #3
0
 public override IEnumerator <T> GetEnumerator()
 {
     return(SL.Except(Source, Other, Comparer).GetEnumerator());
 }
Exemple #4
0
 public static IEnumerable <TSource> Except <TSource>(this IEnumerable <TSource> first, IEnumerable <TSource> second, IEqualityComparer <TSource> comparer) =>
 LinqEnumerable.Except(first, second, comparer);
Exemple #5
0
 public static IEnumerable <TSource> Except <TSource>(this IEnumerable <TSource> first, IEnumerable <TSource> second) =>
 LinqEnumerable.Except(first, second);
Exemple #6
0
 public void LinqSequence()
 {
     MakeMeasurement(() => Linq.ToList(Linq.Except(source, source)), "Linq").Run();
 }