/ Published in: C#
Expand |
Embed | Plain Text
/// <summary> /// Check if the object has a value /// </summary> /// <param name="o">object to be checked</param> /// <returns>boolean true/false whether it has a value.</returns> public bool HasValue(object o) { return o != null && o != System.DBNull.Value && o.ToString() != ""; }
You need to login to post a comment.
