Click or drag to resize

DataValueT Structure

A strongly-typed timestamped data value.

Namespace:  Demo3D.PLC.Comms
Assembly:  PLC (in PLC.dll) Version: 17.00.05
Syntax
C#
public readonly struct DataValue<T> : IEquatable<DataValue<T>>, 
	IEquatable<T>, IComparable<DataValue<T>>, IComparable<T>
where T : struct, new(), Object

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:Demo3D.PLC.Comms.DataValue`1"]

The DataValueT type exposes the following members.

Properties
  NameDescription
Public propertyTypeCode
Type code.
Top
Methods
  NameDescription
Public methodStatic memberCreate(DataValue)
Constructs a DataValue{T}.
Public methodStatic memberCreate(T)
Constructs a DataValue{T}.
Public methodStatic memberCreate(ValueStruct)
Constructs a DataValue{T}.
Public methodStatic memberCreate(T, CommonTime)
Constructs a DataValue{T}.
Public methodStatic memberCreate(ValueStruct, CommonTime)
Constructs a DataValue{T}.
Public methodEquals(DataValue)
Determines whether the specified value equals the current value (ignoring time).
Public methodEquals(T)
Determines whether the specified value equals the current value (ignoring time).
Public methodEquals(DataValueT)
Determines whether the specified value equals the current value (ignoring time).
Public methodEquals(Object)
Determines whether the specified value equals the current value (ignoring time).
(Overrides ValueTypeEquals(Object).)
Public methodEquals(ValueStruct)
Determines whether the specified value equals the current value (ignoring time).
Public methodGetDataType
Returns the type of the value.
Public methodGetHashCode
Returns a hash code for the current value (excluding time).
(Overrides ValueTypeGetHashCode.)
Public methodGetTime
Returns the time of the event that produced the value.
Public methodGetValue
Returns the the actual .Net value.
Public methodGetValueStruct
Returns the the actual .Net value.
Public methodToString
Value as a string.
(Overrides ValueTypeToString.)
Top
Remarks
The timestamp is considered meta-data and is ignored in equality, comparison and hashcode operators/functions.
See Also