public void CollectionExtensions_Set_Intersection() { var a = new[] { 1, 2, 3, 4, 5, 6, 7 }; var b = new[] { 4, 5, 6, 7, 8, 9, 10 }; var expected = new[] { 4, 5, 6, 7 }; var result = a.Intersection(b); Assert.IsTrue(expected.SequenceEqual(result)); }
public static System.Data.Entity.Spatial.DbGeometry Intersection(System.Data.Entity.Spatial.DbGeometry source, System.Data.Entity.Spatial.DbGeometry target) { return source.Intersection(target); }