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

FormatType() public method

public FormatType ( TargetType type ) : string
type Mono.Debugger.Languages.TargetType
return string
        public string FormatType(TargetType type)
        {
            string formatted;
            try {
                formatted = CurrentThread.PrintType (
                    interpreter.Style, type);
            } catch {
                formatted = "<cannot display type>";
            }
            return (formatted);
        }

Usage Example

Exemplo n.º 1
0
        protected override string Execute(ScriptingContext context,
						   Expression expression, DisplayFormat format)
        {
            TargetType type = expression.EvaluateType (context);
            string text = context.FormatType (type);
            context.Print (text);
            return text;
        }
All Usage Examples Of Mono.Debugger.Frontend.ScriptingContext::FormatType