You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by ni...@apache.org on 2004/05/30 13:30:14 UTC
cvs commit: logging-log4net/src NDC.cs
nicko 2004/05/30 04:30:14
Modified: src NDC.cs
Log:
Fixed arguments to ArgumentOutOfRangeException. Updated doc comments
Revision Changes Path
1.4 +11 -1 logging-log4net/src/NDC.cs
Index: NDC.cs
===================================================================
RCS file: /home/cvs/logging-log4net/src/NDC.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- NDC.cs 23 Feb 2004 03:18:02 -0000 1.3
+++ NDC.cs 30 May 2004 11:30:14 -0000 1.4
@@ -77,6 +77,16 @@
/// Gets the current context depth.
/// </summary>
/// <value>The current context depth.</value>
+ /// <remarks>
+ /// <para>
+ /// The number of context values pushed onto the context stack.
+ /// </para>
+ /// <para>
+ /// Used to record the current depth of the context. This can then
+ /// be restored using the <see cref="SetMaxDepth"/> method.
+ /// </para>
+ /// </remarks>
+ /// <seealso cref="SetMaxDepth"/>
public static int Depth
{
get { return GetStack().Count; }
@@ -213,7 +223,7 @@
{
if (maxDepth < 0)
{
- throw new ArgumentOutOfRangeException("Parameter: maxDepth, Value: ["+maxDepth+"] out of range. Nonnegative number required");
+ throw new ArgumentOutOfRangeException("maxDepth", (object)maxDepth, "Parameter: maxDepth, Value: ["+maxDepth+"] out of range. Nonnegative number required");
}
Stack stack = GetStack();