Class ProductDefinitionWrapper
Selects the most specific API wrapper for a registered native product definition.
public static class ProductDefinitionWrapper
- Inheritance
-
ProductDefinitionWrapper
- Inherited Members
Remarks
The wrapper exposes native-family types when available and returns CustomProductDefinition only for definitions registered through S1API's custom-product metadata. It never changes the native definition or its identity.
Methods
Wrap(ProductDefinition)
Returns the most specific wrapper available for a product definition.
public static ProductDefinition Wrap(ProductDefinition def)
Parameters
defProductDefinitionThe product definition to classify.
Returns
- ProductDefinition
A typed wrapper, or
defwhen no more specific wrapper applies.