19 lines
358 B
C#
19 lines
358 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
|
|||
|
|
namespace ExtensionMethods
|
|||
|
|
{
|
|||
|
|
public static class ObjectExtension
|
|||
|
|
{
|
|||
|
|
public static string ToSafeTurnString(this object obj)
|
|||
|
|
{
|
|||
|
|
if (obj == null)
|
|||
|
|
return string.Empty;
|
|||
|
|
|
|||
|
|
return obj.ToString();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|