Table of Contents

Struct ComponentBaseExtensions.PropertyTagRestore<T>

Namespace
Stride.Core
Assembly
Stride.Core.dll

A structure returned by PushTagAndRestore<T>(ComponentBase, PropertyKey<T?>, T) that saves the value of a tag property of an object and, once finished, can restore its value to the previous one.

public readonly struct ComponentBaseExtensions.PropertyTagRestore<T> : IDisposable

Type Parameters

T

The type of the tag.

Implements
Inherited Members
Extension Methods

Constructors

PropertyTagRestore(ComponentBase, PropertyKey<T?>)

Initializes a new instance of the ComponentBaseExtensions.PropertyTagRestore<T> structure.

public PropertyTagRestore(ComponentBase container, PropertyKey<T?> key)

Parameters

container ComponentBase

The Component that contains the tag to set and restore.

key PropertyKey<T>

The key that identifies the tag to set and restore.

Exceptions

ArgumentNullException

container is null.

ArgumentNullException

key is null.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()