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 rg...@apache.org on 2009/06/01 05:36:29 UTC

svn commit: r780551 - /logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs

Author: rgrabowski
Date: Mon Jun  1 03:36:29 2009
New Revision: 780551

URL: http://svn.apache.org/viewvc?rev=780551&view=rev
Log:
Convert String.IsNullOrEmpty call to Length != 0 to support older versions of the Framework.

Modified:
    logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs

Modified: logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs?rev=780551&r1=780550&r2=780551&view=diff
==============================================================================
--- logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs (original)
+++ logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs Mon Jun  1 03:36:29 2009
@@ -64,7 +64,7 @@
 				return;
 			
 			string optStr = Option.Trim();
-			if (!string.IsNullOrEmpty(optStr))
+			if (optStr.Length != 0)
 			{
 				int stackLevelVal;
 				if (SystemInfo.TryParse(optStr, out stackLevelVal))