Joins Operator

Join our collection with another collection.

var colors = new List<String> {"Red", "Black"};
var favoriteBirds = birds.Join(colors, b => b.Color, c => c, (bird, color) => bird);
//return collection of favoriteBirds that has color in colors

Get a mathematical operation on collection.

var averageBirds = birds.Average(b => b.Sightings);
var minBirds = birds.Min(b => b.Sightings);
var maxBirds = birds.Max(b => b.Sightings);

results matching ""

    No results matching ""