GroupJoin operator works on two sequences or collections.It joins the sequences based on a key and returns group for the given key. Following is the signature of groupjoin operator: GroupJoin<Outer,Inner, Key, Result>( this IEnumerable<Outer> outer, IEnumerable<Inner> inner, Func<TOuter, Key> outerKeySelector, Func<TInner, Key> innerKeySelector, Func<TOuter, Enumerable<TInner>, TResult> resultSelector ) Following are the type parameters of the GroupJoin() method: outer 1st collection […]
Archives for June 2018
Listening to Raspberry pi push button using Python
In this example we will see how to connect push button to raspberry pi.The push button will act as an input interface to raspberry pi. To implement the circuit fort the application we will need the following: breadboard jumper wires (2 male to female) push button raspberry pi (b+ in this example) set up the circuit […]
Merge multiple Lists using LINQ Zip operator in C#
Zip operator in C# is used for merging or combining two sequences into one sequence.If you have two lists of elements and you want to create a third list by combining elements in the two lists then you can use Zip LINQ operator.It is included as a query operator in C# 4.0 onward. Suppose if […]