Show / Hide Table of Contents

Class FieldValue

Represents a fieldvalue

Inheritance
System.Object
FieldValue
ArrayFieldValue
Namespace: RosNet.Field
Assembly: RosNet.dll
Syntax
public class FieldValue : object

Constructors

| Improve this Doc View Source

FieldValue(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
| Improve this Doc View Source

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 Source

DataType

Declaration
public PrimitiveType DataType { get; }
Property Value
Type Description
PrimitiveType
| Improve this Doc View Source

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Value

Declaration
public byte[] Value { get; }
Property Value
Type Description
System.Byte[]

Methods

| Improve this Doc View Source

GetByteLength()

Finds the byte length of the fieldvalue using the datatype

Declaration
public virtual int GetByteLength()
Returns
Type Description
System.Int32

byte length of fieldvalue

| Improve this Doc View Source

PrettyValue()

Creates string of Value using datatype

Declaration
public string PrettyValue()
Returns
Type Description
System.String

String of Value

| Improve this Doc View Source

ToString()

Creates string with value

Declaration
public override string ToString()
Returns
Type Description
System.String

String with value

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX