This topic describes what kind of objects can be put in the Object Gateway and what must be done to do so. To be put in the Object Gateway, an object must be cso-compatible. Often, your objects will already be cso-compatible and the only thing left for you to do is assign that object to the SourceObject property of your ObjectGateway control.

If it's not the case, you will have to make the type of the object a cso-ready type by applying a few code attributes to its definition. From that cso-ready type, the Type Morpher will create a cso-generated type. This will make the cso-ready type a cso-compatible type and the original object a cso-compatible object that can be passed to the Object Gateway control.

The following sub-sections describes these different cases.