ListEnumerator.Definitionstring Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a description of the enumerator.
public:
virtual System::String ^ Definitionstring();
public string Definitionstring ();
abstract member Definitionstring : unit -> string
override this.Definitionstring : unit -> string
Public Function Definitionstring () As String
Returns
A string that contains a description of the enumerator.
Implements
Remarks
For example, an enumerator for a list of integers would return int list enumerator.
The following example creates a list and an enumerator for the list. It uses the definitionString method to print a description of the enumerator.
{
List list = new List(Types::Integer);
ListEnumerator enumerator;
;
// Add some elements to the list
list.addEnd(1);
list.addEnd(2);
list.addStart(3);
// Set the enumerator
enumerator = list.getEnumerator();
print enumerator.definitionString();
pause;
}