ListEnumerator.Definitionstring Method

Definition

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; 
}

Applies to