The sample illustrates using System.Reflection to run queries over components from System.Xml.Linq. The by-product is an HTML document outlining the public APIs for a given assembly, in this case System.Xml.Linq.dll.

You can easily modify this sample to output the public APIs for any assembly.

In the Program.cs file, replace the type XDocument in the following line of code (line 20):

	XDocument attr = new XDocument();
with a type from the target assembly. For example:
	Reflector attr = new Reflector();

Make sure the assembly is referenced by the project and that the type's namespace is in scope with an appropriate using directive.

Many of the LINQ samples require XML files and/or the version of the Northwind sample database that is located in the Data sample. If you install the Data sample under the same parent folder as the other LINQ samples, then the path for the XML files and database file will be resolved automatically. Many of the sample files also require the ObjectDumper project.