using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Tango.Logging
{
/// <summary>
/// Contains <see cref="String"/> extension methods.
/// </summary>
public static class StringExtensions
{
/// <summary>
/// Converts the object to string. If the object is null, will return null.
/// </summary>
/// <param name="obj">The object.</param>
/// <returns></returns>
public static String ToStringSafe(this object obj)
{
return obj != null ? obj.ToString() : String.Empty;
}
}
}