Normally, you use the ICreateTypeInfo2, ITypeInfo, and several structures in adding properties and methods to the type information of the run-time object. The framework makes the process simpler with features that do the following:
These features provide for fairly basic modifications to type information in dispinterfaces. For more detailed manipulation, you still have access to the interfaces and raw structures that you need.
Step 1: Use IProvideDynamicClassInfoImpl
Step 2: Use Helper Classes to Add Methods and Properties