Convert To Null Safe String - CSharp System

CSharp examples for System:String Parse

Description

Convert To Null Safe String

Demo Code


using System.Text.RegularExpressions;
using System.Collections;
using System;//from  w ww.  ja  v  a  2  s  . c  om

public class Main{
    public static string ConvertToNullSafeString(this object value)
      {
         return value == null ? String.Empty : value.ToString();
      }
}

Related Tutorials