* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / Microsoft.VisualBasic / Test / standalone / 6429.vb
index 5cec09a43509d3985325ebaa85139212317f14f3..36808e89b3c40684b66f828d05eaad7f35c3d475 100644 (file)
@@ -1,43 +1,44 @@
-  '\r
-  ' Copyright (c) 2002-2003 Mainsoft Corporation.\r
-  '\r
-  ' Permission is hereby granted, free of charge, to any person obtaining a\r
-  ' copy of this software and associated documentation files (the "Software"),\r
-  ' to deal in the Software without restriction, including without limitation\r
-  ' the rights to use, copy, modify, merge, publish, distribute, sublicense,\r
-  ' and/or sell copies of the Software, and to permit persons to whom the\r
-  ' Software is furnished to do so, subject to the following conditions:\r
-  ' \r
-  ' The above copyright notice and this permission notice shall be included in\r
-  ' all copies or substantial portions of the Software.\r
-  ' \r
-  ' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-  ' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-  ' FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-  ' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-  ' LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r
-  ' FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\r
-  ' DEALINGS IN THE SOFTWARE.\r
   '
-
-
-Imports Microsoft.VisualBasic.Collection\r
-Imports System.Collections\r
-\r
-Public Class TestClass\r
-    Public Function Test() As Integer\r
-        'BeginCode\r
-        Dim s() As String = {"a", "b", "c", "d"}\r
-        Dim col As New Microsoft.VisualBasic.Collection()\r
-        Dim e As IEnumerator\r
-        Dim item As Object\r
-        Dim i As Integer = 0\r\r
-        col.Add(s(0), Nothing, Nothing, Nothing)\r
-        col.Add(s(1), Nothing, Nothing, Nothing)\r
-        col.Add(s(2), Nothing, Nothing, Nothing)\r
-        col.Add(s(3), Nothing, Nothing, Nothing)\r
-\r        e = col.GetEnumerator()\r\r        If e Is Nothing Then Return 2\r\r
-        For Each item In col\r            If s(i).ToString <> item.ToString Then Return i * 2\r            i = i + 1\r        Next\r\r
-        Return 1\r
-    End Function\r
-End Class\r
+  ' Copyright (c) 2002-2003 Mainsoft Corporation.
+  '
+  ' Permission is hereby granted, free of charge, to any person obtaining a
+  ' copy of this software and associated documentation files (the "Software"),
+  ' to deal in the Software without restriction, including without limitation
+  ' the rights to use, copy, modify, merge, publish, distribute, sublicense,
+  ' and/or sell copies of the Software, and to permit persons to whom the
+  ' Software is furnished to do so, subject to the following conditions:
+  ' 
+  ' The above copyright notice and this permission notice shall be included in
+  ' all copies or substantial portions of the Software.
+  ' 
+  ' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  ' IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  ' FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  ' AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  ' LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  ' FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+  ' DEALINGS IN THE SOFTWARE.
+  '
+Imports Microsoft.VisualBasic.Collection
+Imports System.Collections
+Public Class TestClass
+    Public Function Test() As Integer
+        'BeginCode
+        Dim s() As String = {"a", "b", "c", "d"}
+        Dim col As New Microsoft.VisualBasic.Collection()
+        Dim e As IEnumerator
+        Dim item As Object
+        Dim i As Integer = 0
+        col.Add(s(0), Nothing, Nothing, Nothing)
+        col.Add(s(1), Nothing, Nothing, Nothing)
+        col.Add(s(2), Nothing, Nothing, Nothing)
+        col.Add(s(3), Nothing, Nothing, Nothing)
+        e = col.GetEnumerator()
+        If e Is Nothing Then Return 2
+        For Each item In col
+            If s(i).ToString <> item.ToString Then Return i * 2
+            i = i + 1
+        Next
+        Return 1
+    End Function
+End Class