Table of Contents

Class ScopedProperty<T>

public class ScopedProperty<T> where T : struct

Type Parameters

T
Inheritance
ScopedProperty<T>

Constructors

ScopedProperty()

public ScopedProperty()

ScopedProperty(T)

public ScopedProperty(T defaultValue)

Parameters

defaultValue T

Properties

Current

Gets the current value for this property. Will be the default value, or the value set by any currently open scopes.
Use the different scopes provided by Draw to modify this value.

public T Current { get; }

Property Value

T

Default

Gets or sets the default value for this property.

public T Default { get; set; }

Property Value

T

Methods

HasValue()

public bool HasValue()

Returns

bool

ResetDefault()

public void ResetDefault()

ToString()

public override string ToString()

Returns

string

Operators

implicit operator bool(ScopedProperty<T>)

public static implicit operator bool(ScopedProperty<T> item)

Parameters

item ScopedProperty<T>

Returns

bool

implicit operator T(ScopedProperty<T>)

public static implicit operator T(ScopedProperty<T> item)

Parameters

item ScopedProperty<T>

Returns

T