DocFX + Singulink = ♥

Class Data

Represents variable information of a SlugBaseCharacter that depends on a Feature.

Inheritance
object
Data
Data<THolder, TValue>
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SlugBase.Features
Assembly: SlugBase.dll
Syntax
public abstract class Data

Constructors

View Source

Data(Feature)

Create a new Data instance that requires a given feature.

Declaration
public Data(Feature requiredFeature)
Parameters
Type Name Description
Feature requiredFeature

The feature that this requires, or null to not require a feature.

Properties

View Source

RequiredFeature

The feature this data depends upon.

Declaration
public Feature RequiredFeature { get; }
Property Value
Type Description
Feature

Methods

View Source

TryUnbox<T>(StrongBox<T>, out T)

Gets the value of a StrongBox<T>.

Declaration
public static bool TryUnbox<T>(StrongBox<T> box, out T value)
Parameters
Type Name Description
StrongBox<T> box

The StrongBox<T> holding the value or null.

T value

The stored value, or default if box is null.

Returns
Type Description
bool

false if box was null, true otherwise.

Type Parameters
Name Description
T

The stored value's type.