Table of Contents

Class TWithNameTDC<T>

Namespace
SunamoDevCode._public.SunamoData.Data
Assembly
SunamoDevCode.dll

Generic container pairing a name string with a value of type T.

public class TWithNameTDC<T>

Type Parameters

T

Type of the stored value.

Inheritance
TWithNameTDC<T>
Inherited Members
Extension Methods

Constructors

TWithNameTDC()

Default constructor.

public TWithNameTDC()

TWithNameTDC(string, T)

Creates a new instance with the given name and value.

public TWithNameTDC(string name, T t)

Parameters

name string

Name to associate.

t T

Value to store.

Fields

name

Name associated with the value.

public string name

Field Value

string

t

The stored value of type T.

public T t

Field Value

T

Methods

Get(string)

Creates a new instance with only the name set.

public static TWithNameTDC<T> Get(string name)

Parameters

name string

Name to set.

Returns

TWithNameTDC<T>

New instance with the given name.

ToString()

Returns the name string.

public override string ToString()

Returns

string

The name.