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/Util PatternParser.cs
Date Sun, 19 Dec 2004 19:24:13 GMT
nicko       2004/12/19 11:24:13

  Modified:    src/Util PatternParser.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/Util/PatternParser.cs
  
  Index: PatternParser.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Util/PatternParser.cs,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PatternParser.cs	1 Oct 2004 21:02:16 -0000	1.4
  +++ PatternParser.cs	19 Dec 2004 19:24:13 -0000	1.5
  @@ -310,9 +310,10 @@
   				pc.FormattingInfo = formattingInfo;
   				pc.Option = option;
   
  -				if (pc is IOptionHandler)
  +				IOptionHandler optionHandler = pc as IOptionHandler;
  +				if (optionHandler != null)
   				{
  -					((IOptionHandler)pc).ActivateOptions();
  +					optionHandler.ActivateOptions();
   				}
   
   				AddConverter(pc);
  
  
  

Mime
View raw message