IDataKeyPathMapper Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Interface for a key-path mapper that is used to translate between data source namespaces and view namespaces.
public interface IDataKeyPathMapper
type IDataKeyPathMapper = interface
Public Interface IDataKeyPathMapper
- Derived
Remarks
Any key path mapper can be dependency injected into any data source. This allows reusable view prefabs to be populated from any variety of data sources containing similar information.
If no Key Path Mapper is assigned to a data source, then the view and data source key paths are assumed to be the same.
TODO: Consider adding a namespace argument so that a single key mapper can map multiple different views to the same data source without a chance of naming conflicts. In this case, the combination of namespace and local (view) key path would be used to look up the correct mapping.
Methods
| Name | Description |
|---|---|
| GetDataKeyPathFromViewKeyPath(String) |
Given a a view keyPath return the data keyPath. |
| GetViewKeyPathFromDataKeyPath(String) |
Given a a data keyPath return the view keyPath. |