Table of Contents

Class GffResourceFieldStruct

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

A GffResourceField containing a structure of key/value pairs.

public sealed class GffResourceFieldStruct : GffResourceField, IReadOnlyDictionary<string, GffResourceField>, IReadOnlyCollection<KeyValuePair<string, GffResourceField>>, IEnumerable<KeyValuePair<string, GffResourceField>>, IEnumerable
Inheritance
GffResourceFieldStruct
Implements
Inherited Members
Extension Methods

Properties

Count

Gets the number of child fields.

EntrySet

If this field is a struct, gets an enumerable of the key/values pairs.
Otherwise, returns an empty enumerable.

FieldType

Gets the GFF field type.

this[int]

Gets the child GffResourceField at the specified index.

this[string]

Gets the child GffResourceField with the specified key.

Keys

If this field is a struct, gets an enumerable of the struct's keys.
Otherwise, returns an empty enumerable.

Values

If this field is an array, gets an enumerable of the array's values.
If this field is a struct, gets an enumerable of the struct's values.
Otherwise, returns an empty enumerable.

Methods

ContainsKey(string)

If this field is a GffResourceFieldStruct, determines if the specified key exists in the structure.

GetEnumerator()

Returns an enumerator that iterates through the collection.

TryGetValue(string, out GffResourceField?)

If this field is a GffResourceFieldStruct, gets the value associated with the specified key.