By tag: IEnumerable
0
kicks
Linq to QueryableComputer : GAC, Registry, etc. Fusion Log Debugging
Example: (try this with gacutil.exe)
** ASSEMBLIES BY NAME WITH > 1 REGISTERED = 664 ***
Group ‘Microsoft’ Assemblies=466 Percent=70.18% Public Keys Used=5
Group ‘DevExpress’ Assemblies=73 Percent=10.99% Public Keys Used=2
Group ‘System’ Assemblies=71 Percent=10.69% Public Keys Used=4
...
0
kicks
‘Linq to Gac’ : Use Linq to Power Query your Gac via C# to Fusion
This post gets the GAC via Linq to bend your way. How? A Fusion Wrapper to IEnumerable over your Gac. No nasty PInvokes to deal with. It's all clean C# which is here to use. We owe a debt to the Mono project for this as well as a very smart Microsoft staff member to be give credit when we can find t...
0
kicks
Lists: Filter, Map and Reduce - and the Magic of IEnumerator.
There are 3 very handy list functions which make dealing with lists a breeze: Map, Filter and Reduce. But along the way of writing them, an important principle of IEnumerator<> comes up.
0
kicks
ItemsSource tips & tricks
Describe problem.
When we wish to implement the mechanism Drag&Drop of Children for our control in WPF, particularly that our control contains children in its logical tree (in other case attached and inherit properties work incorrect sometimes). Let that control template contains some other c...
0
kicks
LINQFarm: Understanding IEnumerable<T>, Part I
The IEnumerable<T> interface is a key part of LINQ to Objects and binds many of its different features together into a whole. This series of posts explains IEnumerable<T> and the role it plays in LINQ to Objects. If you hear people talking about IEnumerable<T>, and sometimes wished...
0
kicks
What's inside a foreach() statement?
A comparision of a foreach() loop and manually looping by calling GetEnumerator() and MoveNext()
0
kicks
More Fun with C# Interators : A Counting Iterator
A C# Iterator which appears to be a collection filled with a sequence of numbers.
0
kicks
More Fun with C# Iterators: Take, Skip, TakeWhile, SkipWhile
Demostration of implementing a couple features of .Net 3.0 LINQ using just .Net 2.0
0
kicks
Implementing A Circular Iterator (correct link)
Creating a IEnumerator<T> which loops continuously through a collection.
0
kicks
Adding Skip First to Foreach
Allow developers to use foreach to iterator over a collection, in the case where the first or last item in the collection needed to be handled differently.