Table of Contents

Interface IReferencable

Namespace
Stride.Core
Assembly
Stride.Core.dll

Base interface for all referencable objects.

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 method returns the new reference count.

Release()

Decrements the reference count of this instance.

int Release()

Returns

int

The method returns the new reference count.

Remarks

When the reference count is going to 0, the component should release/dispose dependents objects.