List.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 type of the elements in the list.
public:
System::String ^ definitionString();
public string definitionString ();
member this.definitionString : unit -> string
Public Function definitionString () As String
Returns
A string that contains a definition of the list.
Remarks
For example, this method could return "list of int". To print a list of the values within the list, use the List.toString method.
The following example creates a list of integers. The definitionString method is used to print a description of the list.
{
// Create a list of integers
List il = new List(Types::Integer);
// Add some elements to the list
il.addEnd(1);
il.addEnd(2);
il.addStart(3);
// Print a description ofvthe list
print il.definitionString();
print il.toString();
pause;
}