Class FieldValue
Represents a fieldvalue
Namespace: RosNet.Field
Assembly: RosNet.dll
Syntax
public class FieldValue : object
Constructors
| Improve this Doc View SourceFieldValue(String, PrimitiveType)
Creates a fieldvalue with name and datatype
Declaration
public FieldValue(string Name, PrimitiveType DataType)
Parameters
Type | Name | Description |
---|---|---|
System. |
Name | |
Primitive |
DataType |
FieldValue(String, PrimitiveType, Byte[])
Creates a fieldvalue with name, datatype and value
Declaration
public FieldValue(string Name, PrimitiveType DataType, byte[] Value)
Parameters
Type | Name | Description |
---|---|---|
System. |
Name | |
Primitive |
DataType | |
System. |
Value |
Properties
| Improve this Doc View SourceDataType
Declaration
public PrimitiveType DataType { get; }
Property Value
Type | Description |
---|---|
Primitive |
Name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
Value
Declaration
public byte[] Value { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceGetByteLength()
Finds the byte length of the fieldvalue using the datatype
Declaration
public virtual int GetByteLength()
Returns
Type | Description |
---|---|
System. |
byte length of fieldvalue |
PrettyValue()
Creates string of Value using datatype
Declaration
public string PrettyValue()
Returns
Type | Description |
---|---|
System. |
String of Value |
ToString()
Creates string with value
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
String with value |