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
TType 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
namestringName to associate.
tTValue to store.
Fields
name
Name associated with the value.
public string name
Field Value
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
namestringName to set.
Returns
- TWithNameTDC<T>
New instance with the given name.
ToString()
Returns the name string.
public override string ToString()
Returns
- string
The name.