System.XML: Remove more NET_2_0 directives
[mono.git] / mcs / class / System.XML / System.Xml.Schema / XmlSchemaObjectEnumerator.cs
index c2abb5c34b5558653ad4cf3df09579c6d748ddc8..06df84eed60e56449e200ca5bb2e0ee248ddcb86 100644 (file)
@@ -1,73 +1,73 @@
-// Author: Dwivedi, Ajay kumar\r
-//            Adwiv@Yahoo.com\r
-\r
-//\r
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-// \r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-// \r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-using System;\r
-using System.Collections;\r
-\r
-namespace System.Xml.Schema\r
-{\r
-       /// <summary>\r
-       /// Summary description for XmlSchemaObjectEnumerator.\r
-       /// </summary>\r
-#if !NET_2_0\r
-       sealed\r
-#endif\r
-       public class XmlSchemaObjectEnumerator : IEnumerator\r
-       {\r
-               private IEnumerator ienum;\r
-               internal XmlSchemaObjectEnumerator(IList list)\r
-               {\r
-                       this.ienum = list.GetEnumerator();\r
-               }\r
-               // Properties\r
-               public XmlSchemaObject Current\r
-               { \r
-                       get\r
-                       {\r
-                               return (XmlSchemaObject) ienum.Current; \r
-                       }\r
-               }\r
-               // Methods\r
-               public bool MoveNext()\r
-               {\r
-                       return ienum.MoveNext();\r
-               }\r
-               public void Reset()\r
-               {\r
-                       ienum.Reset();\r
-               }\r
-               //Explicit Interface implementation\r
-               bool IEnumerator.MoveNext()\r
-               {\r
-                       return ienum.MoveNext();\r
-               }\r
-               void IEnumerator.Reset()\r
-               {\r
-                       ienum.Reset();\r
-               }\r
-               object IEnumerator.Current\r
-               {\r
-                       get{return (XmlSchemaObject) ienum.Current;}\r
-               }\r
-       }\r
-}\r
+// Author: Dwivedi, Ajay kumar
+//            Adwiv@Yahoo.com
+
+//
+// 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.
+//
+using System;
+using System.Collections;
+
+namespace System.Xml.Schema
+{
+       /// <summary>
+       /// Summary description for XmlSchemaObjectEnumerator.
+       /// </summary>
+#if !NET_2_0
+       sealed
+#endif
+       public class XmlSchemaObjectEnumerator : IEnumerator
+       {
+               private IEnumerator ienum;
+               internal XmlSchemaObjectEnumerator(IList list)
+               {
+                       this.ienum = list.GetEnumerator();
+               }
+               // Properties
+               public XmlSchemaObject Current
+               { 
+                       get
+                       {
+                               return (XmlSchemaObject) ienum.Current; 
+                       }
+               }
+               // Methods
+               public bool MoveNext()
+               {
+                       return ienum.MoveNext();
+               }
+               public void Reset()
+               {
+                       ienum.Reset();
+               }
+               //Explicit Interface implementation
+               bool IEnumerator.MoveNext()
+               {
+                       return ienum.MoveNext();
+               }
+               void IEnumerator.Reset()
+               {
+                       ienum.Reset();
+               }
+               object IEnumerator.Current
+               {
+                       get{return (XmlSchemaObject) ienum.Current;}
+               }
+       }
+}