Search Results for

    Show / Hide Table of Contents

    Struct DrawableCacheKey

    Composite key for caching drawables, combining feature and style generation IDs. When either the feature or style is modified (calling Modified()), the GenerationId changes, causing the old cache entry to become stale and a new drawable to be created.

    Implements
    IEquatable<DrawableCacheKey>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Mapsui.Rendering
    Assembly: Mapsui.dll
    Syntax
    public readonly record struct DrawableCacheKey : IEquatable<DrawableCacheKey>

    Constructors

    | Edit this page View Source

    DrawableCacheKey(long, long)

    Composite key for caching drawables, combining feature and style generation IDs. When either the feature or style is modified (calling Modified()), the GenerationId changes, causing the old cache entry to become stale and a new drawable to be created.

    Declaration
    public DrawableCacheKey(long FeatureGenerationId, long StyleGenerationId)
    Parameters
    Type Name Description
    long FeatureGenerationId

    The feature's GenerationId at the time the drawable was created.

    long StyleGenerationId

    The style's GenerationId at the time the drawable was created.

    Properties

    | Edit this page View Source

    FeatureGenerationId

    The feature's GenerationId at the time the drawable was created.

    Declaration
    public long FeatureGenerationId { get; init; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    StyleGenerationId

    The style's GenerationId at the time the drawable was created.

    Declaration
    public long StyleGenerationId { get; init; }
    Property Value
    Type Description
    long

    Implements

    IEquatable<T>

    Extension Methods

    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX