Fun With Sequences
Presents sequences (instances of IEnumerable or IEnumerable
Presents sequences (instances of IEnumerable or IEnumerable
Explains how to write a series of extension methods to read the XML comments/documentation for classes/properties/methods/parameters/etc at run-time, using LINQ-to-XML and reflection. Continue reading
Regular Windows Forms data-binding can only bind to the properties directly belonging to each list item. This post explains how to bind to properties of properties (and so on, recursively) by creating a special collection class that exposes nested properties using ITypedList and PropertyDescriptor. You can use AggregationBindingList as a data source for the ComboBox, ListBox and DataGridView controls. Continue reading
Describes the shortcomings of the ExtractAssociatedIcon method in System.Drawing.Icon in situations where the user wants a small icon or the icon for a file type instead of an existing file. Proposes a solution using the Win32 functions SHGetFileInfo and ExtractIconEx (via PInvoke). Continue reading
Describes force-directed (or force-based) diagram layout algorithms and explores an implementation in C#. Covers nodes and connections, forces, Coulomb’s Law, Hooke’s Law, vectors, velocity and displacement. Includes full source code and a sample application. Continue reading