From: <bo...@us...> - 2014-11-29 16:35:49
|
Revision: 554 http://sourceforge.net/p/xmlunit/code/554 Author: bodewig Date: 2014-11-29 16:35:47 +0000 (Sat, 29 Nov 2014) Log Message: ----------- use lambdas in validation namespace Modified Paths: -------------- trunk/xmlunit/src/main/net-core/validation/Validator.cs Modified: trunk/xmlunit/src/main/net-core/validation/Validator.cs =================================================================== --- trunk/xmlunit/src/main/net-core/validation/Validator.cs 2014-11-29 06:45:17 UTC (rev 553) +++ trunk/xmlunit/src/main/net-core/validation/Validator.cs 2014-11-29 16:35:47 UTC (rev 554) @@ -138,9 +138,8 @@ } private static ValidationEventHandler CollectProblems(List<ValidationProblem> problems) { - return delegate(object sender, ValidationEventArgs e) { + return (sender, e) => problems.Add(ValidationProblem.FromEvent(e)); - }; } private static void ThrowOnError(object sender, ValidationEventArgs e) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |