logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject cvs commit: logging-log4net/src/Layout RawLayoutConverter.cs
Date Sun, 19 Dec 2004 19:23:25 GMT
nicko       2004/12/19 11:23:25

  Modified:    src/Layout RawLayoutConverter.cs
  Log:
  Updates suggested by FxCop.
  Minor naming changes to internal types.
  Perf improvements to type check + type cast code.
  
  Revision  Changes    Path
  1.5       +3 -2      logging-log4net/src/Layout/RawLayoutConverter.cs
  
  Index: RawLayoutConverter.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Layout/RawLayoutConverter.cs,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RawLayoutConverter.cs	6 Dec 2004 02:22:44 -0000	1.4
  +++ RawLayoutConverter.cs	19 Dec 2004 19:23:25 -0000	1.5
  @@ -74,9 +74,10 @@
   		/// </remarks>
   		public object ConvertFrom(object source) 
   		{
  -			if (source is ILayout) 
  +			ILayout layout = source as ILayout;
  +			if (layout != null) 
   			{
  -				return new Layout2RawLayoutAdapter((ILayout)source);
  +				return new Layout2RawLayoutAdapter(layout);
   			}
   			throw ConversionNotSupportedException.Create(typeof(IRawLayout), source);
   		}
  
  
  

Mime
View raw message