This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this 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 Topics