FindGeneric Sample Walkthrough

CCI Metadata

FindGeneric is a simple example of a Common Compiler Infrastructure (CCI) Metadata analysis application. FindGeneric is a console application that operates on a list of assemblies, which are passed in as a sequence of command-line arguments. FindGeneric loads each assembly, searches it for generic types that contain generic methods, and prints the signature of each generic method.

This programming pattern is described in the following set of topics. For details on how to obtain the FindGeneric sample, see How to Compile and Run FindGeneric.

Create a Host

The CCI libraries are not associated with any particular application environment. From a CCI perspective, issues such as file locations or the targeted .NET version are matters of application policy. An application host object handles the details of implementing application policies and presents the results to CCI through a standard interface.
FindGeneric uses the default host, and the host creation code is identical to that used by the HelloIL example. See Create a Host for details. For a general discussion of hosts, see Hosts.

Next: Load an Assembly

Last edited Jan 12, 2010 at 4:21 PM by Guy_Smith, version 3

Comments

No comments yet.