Mapping a generic method

To map a generic method in the BOM, you pass generic parameters to the corresponding method in the extender class and then generate a .NET DLL.

About this task

If, for a generic method in the BOM, the mapping algorithm can find no corresponding generic method in the XOM, the mapping algorithm looks for it in the extender class, if you have provided one.

For example, for generic methods in a generic class, the corresponding extender method must have these parameters:

Procedure

To map a generic method:

For example, if the BOM contains the following class:
class Link<A,B> {
  <C,D> A doSomething(C c, D d);
}

Pass four generic parameters to the corresponding method in the extender class:

class LinkExtender {
  public static A DoSomething<A,B,C,D>(Link<A, B> l, C c, D d) {...}
}

Results

After you have mapped the BOM to the .NET XOM, you generate a .NET DLL.

Next Next: Generating a .NET DLL using the Ruleset Archive Assembly Packager.