1/// <summary>
2/// Check if the object has a value
3/// </summary>
4/// <param name="o">object to be checked</param>
5/// <returns>boolean true/false whether it has a value.</returns>
6public bool HasValue(object o)
7{
8 return o != null && o != System.DBNull.Value && o.ToString() != "";
9}