示例#1
0
 public override IEnumerator <T> GetEnumerator()
 {
     if (notifyEnumerable != null)
     {
         return(notifyEnumerable.GetEnumerator());
     }
     return(SL.Intersect(Source, Other, Comparer).GetEnumerator());
 }
示例#2
0
    public void BlinqShouldEqualLinqNativeArrayIntersect([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.Intersect(source, second)));
        var actual   = ExceptionAndValue(() => Linq.ToArray(Blinq.Intersect(source, second)));

        AssertAreEqual(expected, actual);
        source.Dispose();
        second.Dispose();
    }
示例#3
0
 public override IEnumerator <T> GetEnumerator()
 {
     return(SL.Intersect(Source, Other, Comparer).GetEnumerator());
 }
示例#4
0
 public static IEnumerable <TSource> Intersect <TSource>(this IEnumerable <TSource> first, IEnumerable <TSource> second, IEqualityComparer <TSource> comparer) =>
 LinqEnumerable.Intersect(first, second, comparer);
示例#5
0
 public static IEnumerable <TSource> Intersect <TSource>(this IEnumerable <TSource> first, IEnumerable <TSource> second) =>
 LinqEnumerable.Intersect(first, second);