Table of Contents

Interface IReferencable

Namespace
Stride.Core
Assembly
Stride.Core.dll

Base interface for all objects that use reference-counting lifetime management.

public interface IReferencable
Extension Methods

Properties

ReferenceCount

Gets the reference count of this instance.

int ReferenceCount { get; }

Property Value

int

The reference count.

Methods

AddReference()

Increments the reference count of this instance.

int AddReference()

Returns

int

The new reference count.

Release()

Decrements the reference count of this instance.

int Release()

Returns

int

The new reference count.

Remarks

When the reference count reaches 0, the component should release / dispose dependent objects.