private string getValue(object value, int n)
{
if (n > 10) return "";
if (value == null)
{
return "NULL";
}
else
{
var t = value.GetType();
if (t.IsPrimitive || t == typeof(Decimal) || t == typeof(String))
{
return value.ToString();
}
else
{
return "\r\n" + getObjectDescription(value, n + 1);
}
}
}