Class FieldValue
Represents a fieldvalue
Namespace: RosNet.Field
Assembly: RosNet.dll
Syntax
public class FieldValue : objectConstructors
| 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.String | Name | |
| PrimitiveType | 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.String | Name | |
| PrimitiveType | DataType | |
| System.Byte[] | Value | 
Properties
| Improve this Doc View SourceDataType
Declaration
public PrimitiveType DataType { get; }Property Value
| Type | Description | 
|---|---|
| PrimitiveType | 
Name
Declaration
public string Name { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Value
Declaration
public byte[] Value { get; }Property Value
| Type | Description | 
|---|---|
| System.Byte[] | 
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.Int32 | byte length of fieldvalue | 
PrettyValue()
Creates string of Value using datatype
Declaration
public string PrettyValue()Returns
| Type | Description | 
|---|---|
| System.String | String of Value | 
ToString()
Creates string with value
Declaration
public override string ToString()Returns
| Type | Description | 
|---|---|
| System.String | String with value |