CSharp examples for System:Object
Get Object Value Or Default
using System.Text; using System.IO;//from w w w . j av a 2 s .c o m using System.Globalization; using System.Collections.Generic; using System; public class Main{ public static string GetValueOrDefault(this object value, string defaultValue) { if (value == null) { return defaultValue; } return value.ToString(); } }