Class ProjectionComparer<TSource> | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class ProjectionComparer<TSource>

    Class generic in the source only to produce instances of the doubly generic class, optionally using type inference.

    Inheritance
    Object
    ProjectionComparer<TSource>
    Namespace: Unity.UIWidgets.Runtime.external
    Syntax
    public static class ProjectionComparer<TSource>
    Type Parameters
    Name Description
    TSource

    Methods

    Create<TKey>(Func<TSource, TKey>)

    Creates an instance of ProjectionComparer using the specified projection.

    Declaration
    public static ProjectionComparer<TSource, TKey> Create<TKey>(Func<TSource, TKey> projection)
    Parameters
    Type Name Description
    Func<TSource, TKey> projection

    Projection to use when determining the key of an element

    Returns
    Type Description
    ProjectionComparer<TSource, TKey>

    A comparer which will compare elements by projecting each element to its key, and comparing keys

    Type Parameters
    Name Description
    TKey

    Type parameter for the keys to be compared, after being projected from the elements

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023