Defines the field of a struct holding the event time.
Namespace: TeaTimeAssembly: DiscreteLogics.TeaFiles (in DiscreteLogics.TeaFiles.dll) Version: 1.0.0.16 (1.0.0.16)
Syntax
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)] public sealed class EventTimeAttribute : Attribute
Remarks
An event describes a value at a certain time. This can be represented by a struct holding the properties of the value and an additional time value. The prefered way to add such time value is to use Event<(Of <(<'T>)>)>. Alternatively, a struct can hold the value and the time value together. Preferred: use Event{T}CopyC#
struct Tick { public double Price; public int Volume; } Event<Tick><br></br>
CopyC#
struct Tick2 { public Time Time; public double Price; public int Volume; }
Examples
CopyC#
struct FeedMeasurement { public Time Time; public double Price; public int Volume; [EventTime] public Time ArrivalTime; }