Method GetItemText
GetItemText(object?)
Converts the specified item to its string representation.
public virtual string GetItemText(object? item)
Parameters
Returns
- string
A string representation of the specified item. Returns an empty string if
itemis null. If the item is a string, it is returned as-is. If the item implements IFormattable, its formatted string representation is returned using the current culture. Otherwise, the result of ToString() is returned.