Mono.CSharp.InteractiveBase.Describe C# (CSharp) Method

Describe() public static method

Describes an object or a type.
This method will show a textual representation of the object's type. If the object is a System.Type it renders the type directly, otherwise it renders the type returned by invoking GetType on the object.
public static Describe ( object x ) : string
x object
return string
        public static string Describe(object x)
        {
            if (x == null)
                return "<null>";

            var type = x as Type ?? x.GetType ();

            StringWriter sw = new StringWriter ();
            new Outline (type, sw, true, false, false).OutlineType ();
            return sw.ToString ();
        }