WLT documentation has moved.

We are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the Core WLT section of the dot net API explorer and related pages. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top Generated by DocFX