/// <summary> /// Gets text containing the signature of the specified method. /// </summary> /// <param name="method">Method.</param> /// <returns>Signature of the specified method.</returns> /// <exception cref="ArgumentNullException"><paramref name="method"/> is <see langword="null"/>.</exception> private static string GetMethodSignature(IMethod method) { if (method == null) { throw new ArgumentNullException("method"); } StringBuilder builder = new StringBuilder(); method.WriteReflectionName(builder, ReflectionNameOptions.MethodParameterContext); return builder.ToString(); }