Mono.Debugger.Frontend.ScriptingContext.DoFormatObject C# (CSharp) Method

DoFormatObject() private method

private DoFormatObject ( TargetObject obj, DisplayFormat format ) : string
obj Mono.Debugger.Languages.TargetObject
format DisplayFormat
return string
        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);
        }