string DoFormatObject(TargetObject obj, DisplayFormat format)
{
if (format == DisplayFormat.Object) {
TargetClassObject cobj = obj as TargetClassObject;
if (cobj != null) {
string formatted = MonoObjectToString (cobj);
if (formatted != null)
return formatted;
TargetObject proxy = CheckTypeProxy (cobj);
if (proxy != null)
obj = proxy;
}
}
return CurrentThread.PrintObject (interpreter.Style, obj, format);
}