Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

GenericField class

  • Last UpdatedDec 15, 2023
  • 1 minute read

Create a new GenericField

Syntax

public GenericField(string name, Value value)

public GenericField(string name, GenericStruct value)

Description

Creates a new GenericField with the specified name and value. The value can be either a Value or a GenericStruct, or an array of Value or GenericStruct. This allows nested structures to be created.

Properties

public string Name

public bool IsArray

public bool IsStructure

These properties determine:

  • The name of the GenericField

  • Whether its value is an array or of type GenericStruct, respectively. Otherwise, the value is of type Value.

public Values[] SimpleValue

This property determines the value of the GenericField if it is of type Value (null otherwise).

public Struct[] StructValue

This property contains the value of the GenericField if it is of type GenericStruct (null otherwise).

Access the value of the GenericField

Syntax

public object this[int key]

Description

Accesses the value of the GenericField at the specified index (zero-based).

Example

Value myVal = myField[0]

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in