The typed value.
Namespace: TeaTimeAssembly: DiscreteLogics.TeaFiles (in DiscreteLogics.TeaFiles.dll) Version: 1.0.0.16 (1.0.0.16)
Syntax
public T GetValue<T>()
Type Parameters
- T
- The type of the value.
Return Value
The value.Remarks
Usually, the type of a value is known. In this case its value could be retrieved callingCopyC#
using (var tf = TeaFile<Tick>.Create("acme.tea", null, NameValueCollection.From("decimals", 2))) { } var tf = TeaFile.OpenRead("acme.tea"); int n = tf.Description.NameValues.GetValue{int}();
CopyC#
object n = tf.Description.NameValues.GetValue<object>(); Console.WriteLine(n);