summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Core/Assumes.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-03-01 19:38:01 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-03-01 19:38:01 -0800
commitbbebfbf5009526501d4a432c0ce7b0f8d325818c (patch)
treea77971c8ced99bac678e5f520780284aa5d337ef /src/DotNetOpenAuth.Core/Assumes.cs
parent9ffd411fa2115f5cdc4d2c0a473e55b0c82f7dc1 (diff)
parent3ed1a19d2ba373869e5d1aa285726f3b5b99d0c2 (diff)
downloadDotNetOpenAuth-bbebfbf5009526501d4a432c0ce7b0f8d325818c.zip
DotNetOpenAuth-bbebfbf5009526501d4a432c0ce7b0f8d325818c.tar.gz
DotNetOpenAuth-bbebfbf5009526501d4a432c0ce7b0f8d325818c.tar.bz2
Merge branch 'master' into webpages
Conflicts: src/DotNetOpenAuth.sln
Diffstat (limited to 'src/DotNetOpenAuth.Core/Assumes.cs')
-rw-r--r--src/DotNetOpenAuth.Core/Assumes.cs20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/DotNetOpenAuth.Core/Assumes.cs b/src/DotNetOpenAuth.Core/Assumes.cs
index 67205a2..b61fbd4 100644
--- a/src/DotNetOpenAuth.Core/Assumes.cs
+++ b/src/DotNetOpenAuth.Core/Assumes.cs
@@ -1,6 +1,6 @@
//-----------------------------------------------------------------------
-// <copyright file="Assumes.cs" company="Andrew Arnott">
-// Copyright (c) Andrew Arnott. All rights reserved.
+// <copyright file="Assumes.cs" company="Outercurve Foundation">
+// Copyright (c) Outercurve Foundation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
@@ -8,7 +8,9 @@ namespace DotNetOpenAuth {
using System;
using System.Collections.Generic;
using System.Diagnostics;
+ using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
+ using System.Globalization;
using System.Linq;
using System.Text;
@@ -37,7 +39,7 @@ namespace DotNetOpenAuth {
[Pure, DebuggerStepThrough]
internal static void True(bool condition, string unformattedMessage, params object[] args) {
if (!condition) {
- Fail(String.Format(unformattedMessage, args));
+ Fail(String.Format(CultureInfo.CurrentCulture, unformattedMessage, args));
}
}
@@ -57,6 +59,7 @@ namespace DotNetOpenAuth {
/// <summary>
/// An internal error exception that should never be caught.
/// </summary>
+ [SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic", Justification = "This exception should never be caught.")]
[Serializable]
private class InternalErrorException : Exception {
/// <summary>
@@ -69,15 +72,8 @@ namespace DotNetOpenAuth {
/// Initializes a new instance of the <see cref="InternalErrorException"/> class.
/// </summary>
/// <param name="message">The message.</param>
- internal InternalErrorException(string message) : base(message) {
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="InternalErrorException"/> class.
- /// </summary>
- /// <param name="message">The message.</param>
- /// <param name="inner">The inner exception.</param>
- internal InternalErrorException(string message, Exception inner) : base(message, inner) {
+ internal InternalErrorException(string message)
+ : base(message) {
}
/// <summary>