Method SafeToString
- Namespace
- Alternet.UI.Extensions
- Assembly
- Alternet.UI.Common.dll
SafeToString(object?)
Returns a string representation of the specified object, or an empty string if the object is null.
public static string SafeToString(this object? obj)
Parameters
objobjectThe object to convert to a string.
Returns
- string
A string representation of the object, or an empty string if the object is null.