This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Accessing Items in .NET Collections

Use the Item property of the System.Collections.Generic List class to get or set an element at a specified index. Since Item is a property that takes arguments, MATLAB® maps it to a pair of methods to get and set the value. For example, the syntax to use Item to get a value is:

Return TypeNameArguments
System.String RetValItem(System.Collections.Generic.
List<System*String> this,
int32 scalar index)

The syntax to use Item to set a value is:

Return TypeNameArguments
List<System*String> this,
int32 scalar index,
System.String value)

Related Examples

Was this topic helpful?