private void ThrowInvalidSignature(string?additionalInfo = null) { var message = new StringBuilder() .AppendFormat("Method signature [{0}] is not supported.", SyntaxTools.GetSignature(Method.Source)); if (!string.IsNullOrEmpty(additionalInfo)) { message.Append(" ").Append(additionalInfo); } throw new NotSupportedException(message.ToString()); }