aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Notes/Tango.Notes/Azure/SQL Database.txt
blob: 8ece8c3de83e0a6ee09c4e021ea71f97d37cdbf4 (plain)
1
2
3
4
5
6
7
8
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;
        }
    }
}