Search Results for

    Show / Hide Table of Contents

    Class ThreadSafeReference.Dictionary<TValue>

    A reference to a IDictionary<TKey, TValue> intended to be passed between threads.

    To resolve a thread-safe reference on a target Realm on a different thread, pass it to ResolveReference<TValue>(Dictionary<TValue>).
    Inheritance
    object
    ThreadSafeReference
    ThreadSafeReference.Dictionary<TValue>
    Inherited Members
    ThreadSafeReference.Create<T>(IQueryable<T>)
    ThreadSafeReference.Create<T>(T)
    ThreadSafeReference.Create<T>(IList<T>)
    ThreadSafeReference.Create<T>(ISet<T>)
    ThreadSafeReference.Create<TValue>(IDictionary<string, TValue>)
    Namespace: Realms
    Assembly: Realm.dll
    Syntax
    public class ThreadSafeReference.Dictionary<TValue> : ThreadSafeReference
    Type Parameters
    Name Description
    TValue

    The type of the dictionary values.

    Remarks

    A ThreadSafeReference object must be resolved at most once.

    Failing to resolve a ThreadSafeReference will result in the source version of the Realm being pinned until the reference is deallocated.

    Prefer short-lived ThreadSafeReferences as the data for the version of the source Realm will be retained until all references have been resolved or deallocated.
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2020-2024 Realm
    Generated by DocFX