update Paraiba.dll.
using CoverageFramework.Model;\r
using CoverageFramework.Utility;\r
using Paraiba.Utility;\r
+using Paraiba.Windows.Forms;\r
using Paraiba.Xml.Linq;\r
\r
namespace ConditionSelectorGenerator\r
}\r
}\r
}\r
-\r
- static class Extensions\r
- {\r
- public static IEnumerable<int> AsEnumerableInt(this CheckedListBox.CheckedIndexCollection collection)\r
- {\r
- for (int i = 0; i < collection.Count; i++)\r
- {\r
- yield return collection[i];\r
- }\r
- }\r
- }\r
}\r
<Compile Include="Element\Selector\Java2\StatementSelector.cs" />\r
<Compile Include="Element\Selector\XElementSelectorPipe.cs" />\r
<Compile Include="Element\Selector\XElementSelectorUnion.cs" />\r
- <Compile Include="Extensions.cs" />\r
<Compile Include="Utility\InstanceFactory.cs" />\r
<Compile Include="AstGenerator\C\AstGenerator.cs" />\r
<Compile Include="AstGenerator\IAstGenerator.cs" />\r
+++ /dev/null
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace CoverageFramework\r
-{\r
- public static class Extensions\r
- {\r
- public static IEnumerable<T> OddIndexElements<T>(this IEnumerable<T> source)\r
- {\r
- using (var etr = source.GetEnumerator())\r
- {\r
- if (etr.MoveNext())\r
- {\r
- do\r
- {\r
- yield return etr.Current;\r
- etr.MoveNext();\r
- } while (etr.MoveNext());\r
- }\r
- }\r
- }\r
-\r
- public static IEnumerable<T> EvenIndexElements<T>(this IEnumerable<T> source)\r
- {\r
- using (var etr = source.GetEnumerator())\r
- {\r
- etr.MoveNext();\r
- if (etr.MoveNext())\r
- {\r
- do\r
- {\r
- yield return etr.Current;\r
- etr.MoveNext();\r
- } while (etr.MoveNext());\r
- }\r
- }\r
- }\r
- }\r
-}\r