Delegate ResourceMirror.CompareToResource<ItemType, ResourceType>
Function to compare a source item with a resource. It should return: -1 if resource is associated with a smaller item than item. 1 if resource is associated with a larger item than item. 0 if resource is associated with item.
Namespace: Microsoft.MixedReality.WorldLocking.Core
Assembly: cs.temp.dll.dll
Syntax
public delegate int CompareToResource<ItemType, ResourceType>(ItemType item, ResourceType resource);
Parameters
Type | Name | Description |
---|---|---|
ItemType | item | Instance of source data. |
ResourceType | resource | Instance of resource. |
Returns
Type | Description |
---|---|
Int32 |
Type Parameters
Name | Description |
---|---|
ItemType | Type of source data. |
ResourceType | Type of managed resource. |
Remarks
Note that "smaller" and "larger" above must have the identical meaning to the comparison the lists input into Sync are sorted by.