.NET Client Documentation
5.3.0
Search Results for

    Show / Hide Table of Contents

    GetAndSetAsync Method

    GetAndSetAsync(T)

    Sets the current value, and returns the original value.

    Declaration
    Task<T> GetAndSetAsync(T value)
    Parameters
    T value

    The value to set.

    Returns
    Task<T>

    The original value.

    Remarks

    If is a struct, method will return default(T) when reference is not set. You can make it return null instead by using Nullable<T>.

    In This Article
    Back to top Copyright © 2010-2023 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.