Skip to main content

UInt16Array Class

Namespace: GHIElectronics.TinyCLR.IO.TinyFileSystem · Assembly: GHIElectronics.TinyCLR.IO.TinyFileSystem

Dynamically growing array of UInt16 (ushort) elements.

public class UInt16Array

Properties

index]

public ushort this[int index] { get; set; }

Gets or sets the element at the specified index.

Count

public int Count { get; set; }

Gets the number of elements contained in the array.

Methods

Add(ushort value)

public int Add(ushort value)

Adds an element to the end of the collection.

ParameterTypeDescription
valueushortValue of the element to add.

Returns int — The new count of items in the array.

SetLength(int length)

public void SetLength(int length)

Adjusts the length of the array. This can be used to trim the end of the array.

ParameterTypeDescription
lengthintNew length of the array.