Table of Contents

Class ComponentBase

Namespace
Stride.Core
Assembly
Stride.Core.dll

Base class for a framework component.

[DataContract]
public abstract class ComponentBase : DisposeBase, IDisposable, IComponent, IReferencable, ICollectorHolder
Inheritance
ComponentBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

ComponentBase()

Initializes a new instance of the ComponentBase class.

protected ComponentBase()

ComponentBase(string)

Initializes a new instance of the ComponentBase class.

protected ComponentBase(string name)

Parameters

name string

The name attached to this component

Fields

Tags

Gets the attached properties to this component.

public PropertyContainer Tags

Field Value

PropertyContainer

Properties

Name

Gets or sets the name of this component.

public virtual string Name { get; set; }

Property Value

string

The name.

Methods

Destroy()

Disposes of object resources.

protected override void Destroy()

OnNameChanged()

Called when Name property was changed.

protected virtual void OnNameChanged()

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.