private static string GetExceptionXmlDoc(string pattern, string declaredName) { Argument.IsNotNullOrWhitespace(() => pattern); Argument.IsNotNullOrWhitespace(() => declaredName); return string.Format(pattern, declaredName); }