Table of Contents

Class TWithNameT<T>

Namespace
SunamoData.Data
Assembly
SunamoData.dll

Represents a value of type T with an associated name.

public class TWithNameT<T>

Type Parameters

T

The type of the value.

Inheritance
TWithNameT<T>
Inherited Members
Extension Methods

Constructors

TWithNameT()

Initializes a new instance of the TWithNameT<T> class.

public TWithNameT()

TWithNameT(string, T)

Initializes a new instance of the TWithNameT<T> class with a name and value.

public TWithNameT(string name, T value)

Parameters

name string

The name.

value T

The value.

Properties

Name

Gets or sets the name (just first 5 letters in some contexts).

public string Name { get; set; }

Property Value

string

Value

Gets or sets the value.

public T Value { get; set; }

Property Value

T

Methods

Get(string)

Creates a new TWithNameT instance with the specified name.

public static TWithNameT<T> Get(string name)

Parameters

name string

The name.

Returns

TWithNameT<T>

A new TWithNameT<T> instance.

ToString()

Returns the name as the string representation.

public override string ToString()

Returns

string

The name.