OSDN Git Service

move Extensions methods to Paraiba library.
authorKAZUu <kazuu48@hotmail.com>
Wed, 30 Sep 2009 06:13:04 +0000 (15:13 +0900)
committerKAZUu <kazuu48@hotmail.com>
Wed, 30 Sep 2009 06:13:04 +0000 (15:13 +0900)
update Paraiba.dll.

ConditionSelectorGenerator/Main.cs
CoverageFramework/CoverageFramework.csproj
CoverageFramework/Extensions.cs [deleted file]
lib/Microsoft.Contracts.dll
lib/Paraiba.dll

index 0875c05..a49b9fc 100644 (file)
@@ -13,6 +13,7 @@ using CoverageFramework.Element.Selector;
 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
@@ -237,15 +238,4 @@ namespace ConditionSelectorGenerator
                        }\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
index 07c85a5..872809e 100644 (file)
@@ -84,7 +84,6 @@
     <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
diff --git a/CoverageFramework/Extensions.cs b/CoverageFramework/Extensions.cs
deleted file mode 100644 (file)
index ca4734e..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-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
index 39a5e50..0f7f305 100644 (file)
Binary files a/lib/Microsoft.Contracts.dll and b/lib/Microsoft.Contracts.dll differ
index 0f2ea7f..88684f0 100644 (file)
Binary files a/lib/Paraiba.dll and b/lib/Paraiba.dll differ