Thursday, October 6, 2016

Generic extension method for traversing object graphs

public static IEnumerable Traverse(this T root, Func> getChildren)
{
    return Enumerable.Repeat(root, 1)
        .Concat((getChildren(root) ?? Enumerable.Empty())
            .SelectMany(child => Traverse(child, getChildren)));
}

2 comments:

sabung ayam said...

bonus bonus disabung ayam peru

Bakar Ayam Marketing said...

AWESOME THE PROMOTION OF GIRL BEAUTIFUL SALES KLIK HERE SABUNG AYAM

GOOD PRICE AND CHEAP
http://www.gorengayam.net 


PLEASE PRICE DIRECTLY

http://bakarayammarketing.blogspot.com/2018/08/telur-puyuh-berubah-menjadi-andalan.html


========================================================
INFO SEPUTAR SABUNG AYAM

SABUNG AYAM

SABUNG AYAM ONLINE

SABUNG AYAM BANGKOK

SABUNG AYAM FILIPINA