Mono.Cecil.Tests.Formatter.FormatHandlerType C# (CSharp) Method

FormatHandlerType() static private method

static private FormatHandlerType ( Mono.Cecil.Cil.ExceptionHandler handler ) : string
handler Mono.Cecil.Cil.ExceptionHandler
return string
        static string FormatHandlerType(ExceptionHandler handler)
        {
            var handler_type = handler.HandlerType;
            var type = handler_type.ToString ().ToLowerInvariant ();

            switch (handler_type) {
            case ExceptionHandlerType.Catch:
                return string.Format ("{0} {1}", type, handler.CatchType.FullName);
            case ExceptionHandlerType.Filter:
                throw new NotImplementedException ();
            default:
                return type;
            }
        }