Click or drag to resize

DataStruct Class

A dynamic data structure.
Inheritance Hierarchy
SystemObject
  System.DynamicDynamicObject
    Demo3D.PLC.CommsDataStruct

Namespace: Demo3D.PLC.Comms
Assembly: PLC (in PLC.dll) Version: 19.00.00
Syntax
C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public sealed class DataStruct : DynamicObject, 
	IEquatable<DataStruct>, ICustomTypeDescriptor, INotifyPropertyChanged

The DataStruct type exposes the following members.

Properties
 NameDescription
Public propertyIsEmpty The empty/undefined structure definition.
Public propertyItem Access field by name.
Public propertyNumFields Number of fields in structure definition.
Top
Methods
 NameDescription
Public methodStatic memberAssign(Object, Object) Copy data from one structure into another.
Public methodStatic memberAssign(Object, DataType, Object, DataType) Copy data from one structure into another.
Public methodAssignFrom Copy data from structure into this dynamic structure.
Public methodAssignTo Copy data from this dynamic structure into structure.
Public methodStatic memberCopyFrom Creates a new DataStruct and copies data from structure into it.
Public methodCopyTo Creates a new object of type systemType and copies data from this DataStruct into it.
Public methodNotifyPropertiesChanged Raises the PropertyChanged event manually. Since the event isn't raised due to an actual property change, the property name is set as empty.
Top
Events
 NameDescription
Public eventPropertyChanged Occurs when a property value changes.
Top
See Also