Beispiel #1
0
        private static void AppendCallInformation(IMethodInvocation args, StringBuilder stringBuilder)
        {
            var declaringType = args.MethodBase.DeclaringType;

            NameHelper.AppendTypeName(stringBuilder, declaringType);
            stringBuilder.Append('.');
            stringBuilder.Append(args.MethodBase.Name);

            if (args.MethodBase.IsGenericMethod)
            {
                var genericArguments = args.MethodBase.GetGenericArguments();
                NameHelper.AppendGenericArguments(stringBuilder, genericArguments);
            }

            NameHelper.AppendArguments(stringBuilder, args.Arguments);
        }