Class TypeFactoryHelpers
Contains helper methods useful for constructing types.
Inherited Members
Namespace: TheXDS.MCART.Helpers
Assembly: MCART.TypeFactory.dll
Syntax
[RequiresDynamicCode("The class makes calls to dynamic code, so it is not compatible with trimming.")]
public static class TypeFactoryHelpers
Methods
| Edit this page View SourceMerge(params object[])
Combines the public properties and methods of a collection of objects into a single dynamically‑generated wrapper.
Declaration
public static object Merge(params object[] instances)
Parameters
| Type | Name | Description |
|---|---|---|
| object[] | instances | The instances to merge into the new wrapper type. |
Returns
| Type | Description |
|---|---|
| object | A newly compiled object that exposes all public properties and methods of the supplied types. |