DataType Class |
Namespace: Demo3D.PLC.Comms
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 element type.
| |
| ElementName |
The name of the 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 |
Is an array type.
| |
| IsDataArray |
The base element is a DataArrayT.
| |
| IsDynamicStruct |
The base element is a DataStruct.
| |
| IsStruct |
The base element has a dynamic data structure definition.
| |
| Name |
Printable string describing the type.
| |
| SizeBits |
The total size (in bits, or -1).
| |
| SystemType |
The system type.
|
| Name | Description | |
|---|---|---|
| CreateArray |
Create an instance of an array data type.
| |
| CreateArray(IList, IDataContextProvider, ConversionDelegate) |
Create an instance of an array data type.
| |
| CreateInstance |
Create an instance of this data type.
| |
| 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(Int32) |
Makes a (single dimension) array type with the specified length.
| |
| MakeArray(IReadOnlyListInt32) |
Makes a multi-dimensional array type with the specified dimensions.
| |
| SetDimensions(Int32) |
Sets the dimensions of a (single dimension) array type with the specified length.
| |
| SetDimensions(IReadOnlyListInt32) |
Sets the dimensions using the specified dimensions.
| |
| 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.
| |
| 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.
|