Data |
public sealed class DataType
The DataType type exposes the following members.
| Name | Description | |
|---|---|---|
| Dimensions | For an array, returns the dimensions of the array. | |
| ElementFullName | The full name of the base element type. | |
| ElementIsDynamicStruct | The base element is a DataStruct. | |
| ElementIsStruct | The base element has a structure definition. | |
| ElementName | The name of the base element type. | |
| ElementSizeBits | The size of the type (in bits, or -1 for variable sized types). If the type is an array, returns the size of the base element of the array. | |
| ElementType | The .Net System.Type. If the type is an array, this is the System.Type of the base element of the array. | |
| FullName | Printable string describing the type. | |
| IsArray | The type is an array type. | |
| IsDataArray | The type is a DataArrayT. | |
| IsDynamicStruct | The type is a DataStruct. | |
| IsStruct | The type is a structure with a structure definition. | |
| Name | Printable string describing the type. | |
| SizeBits | The total size (in bits, or -1). | |
| SystemType | The system type. |
| Name | Description | |
|---|---|---|
| AsDynamicStruct | Returns a dynamic DataStruct for a struct type. | |
| CreateAndPopulateArray | Convert and populate array. | |
| CreateArray | Create an instance of an array data type. | |
| CreateArray(IList, DataType) | Create an instance of an array data type. | |
| CreateInstance | Create an instance of this data type. | |
| DeSerialize | Deserialize xml representation of the data type. | |
| FindByPosition | Find field by position. | |
| FindFieldByName | Find field by name. | |
| FindFieldByOffset | Find structure field by offset (bits); | |
| FindSystemType | Parse .Net data type. | |
| FindType | Parse data type. | |
| GetBaseElementType | Gets the base element type of an array. | |
| GetElementType | Returns the type of the array. | |
| GetFields | The fields of the structure (ordered, or null). Fields are ordered on FieldOffsetBits first and then on Position. | |
| GetMemoryLayout | Returns the memory layout of the fields in a structure. | |
| GetSystemType | Parse .Net data type. | |
| GetType | Parse data type. | |
| IsAssignableFrom(DataType) | Determines whether an instance of a specified type can be assigned to an instance of the current type. | |
| IsAssignableFrom(Object) | Determines whether a specified value can be assigned to an instance of the current type. | |
| IsAssignableFrom(Type) | Determines whether an instance of a specified type can be assigned to an instance of the current type. | |
| IsConvertible | Determines whether an instance of a specified type (the source) can be converted to an instance of a different type (the destination). | |
| IsConvertibleFrom | Determines whether an instance of a specified type can be converted to an instance of the current type. | |
| IsEquivalent | Determines whether an instance of a specified type is equivalent to an instance of the current type. | |
| IsNullOrObject | Returns true if the dataType is null or the Object type. | |
| MakeArray(Int64, Boolean) | Makes a (single dimensional) array type with the specified length. | |
| MakeArray(IReadOnlyListDataArrayBounds, Boolean) | Makes an array type with the specified dimensions. | |
| MakeArray(IReadOnlyListDataArrayBounds, Boolean) | Makes an array of arrays (jagged) type with the specified dimensions. | |
| MakeArray(IReadOnlyListInt32, Boolean) | Makes an array of arrays (jagged) type with the specified dimensions. | |
| MakeArray(IReadOnlyListInt64, Boolean) | Makes an array type with the specified dimensions. | |
| MakeArray(IReadOnlyListInt64, Boolean) | Makes an array of arrays (jagged) type with the specified dimensions. | |
| Serialize | Serialize data type to xml. | |
| SetDimensions(Int32) | Sets the dimensions of a (single dimensional) array type with the specified length. | |
| SetDimensions(IReadOnlyListDataArrayBounds) | Sets the dimensions using the specified dimensions. | |
| TryCreateArray | Create an instance of an array data type. | |
| TryCreateInstance | Create an instance of this data type. | |
| TryTypeof | Returns the DataType for a .Net System.Type. | |
| TypeFromSize | Returns a best guess DataType given a buffer of a given size. |
| Name | Description | |
|---|---|---|
| BinaryString | Demo3D.IO.BinaryString. | |
| Bit | One bit. | |
| Boolean | One bit. | |
| Buffer | Demo3D.IO.Buffer. | |
| BufferSegment | Demo3D.IO.BufferSegment. | |
| Byte | System.Byte. | |
| Char | System.Char. | |
| DataStruct | Demo3D.PLC.Comms.DataStruct. | |
| DateTime | System.DateTime. | |
| Double | System.Double. | |
| Int16 | System.Int16. | |
| Int32 | System.Int32. | |
| Int64 | System.Int64. | |
| Object | System.Object. | |
| SByte | System.SByte. | |
| Single | System.Single. | |
| String | System.String. | |
| UInt16 | System.UInt16. | |
| UInt32 | System.UInt32. | |
| UInt64 | System.UInt64. |