Original: http://www.shadowandy.net/2012/03/asus-rt-n66u-tomatousb-firmware-flashing-guide.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//IList<Child> childList = new ChildList<Parent, Child>(parent, (p, c) => { c.Parent = p; }); | |
/// <summary> | |
/// List of objects that maintain a reference to their parent object. Adding and removing from the list call a lambda-based | |
/// setter to set the parent reference. | |
/// </summary> | |
/// <typeparam name="TParent"></typeparam> | |
/// <typeparam name="TChild"></typeparam> | |
public class ChildList<TParent, TChild> : IList<TChild>, ICollection | |
where TParent : class |
NewerOlder