dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnetlib ChangeLog System.Xml/Schema/XmlSchemaCo...


From: Radek Polak
Subject: [dotgnu-pnet-commits] pnetlib ChangeLog System.Xml/Schema/XmlSchemaCo...
Date: Sat, 24 Mar 2007 17:58:59 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    pnetlib
Changes by:     Radek Polak <radekp>    07/03/24 17:58:59

Modified files:
        .              : ChangeLog 
        System.Xml/Schema: XmlSchemaCollection.cs 
        runtime/System/Private: DebuggerHelper.cs 

Log message:
        dont throw exceptions from validating reader, some code reformating

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2488&r2=1.2489
http://cvs.savannah.gnu.org/viewcvs/pnetlib/System.Xml/Schema/XmlSchemaCollection.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Private/DebuggerHelper.cs?cvsroot=dotgnu-pnet&r1=1.2&r2=1.3

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2488
retrieving revision 1.2489
diff -u -b -r1.2488 -r1.2489
--- ChangeLog   21 Mar 2007 20:08:19 -0000      1.2488
+++ ChangeLog   24 Mar 2007 17:58:58 -0000      1.2489
@@ -1,3 +1,12 @@
+2007-03-24  Radek Polak  <address@hidden>
+
+       * System.Xml/Schema/XmlSchemaCollection.cs: Removed
+       NotImplementedExceptions and reformat code. This allows xml validating
+       reader to work (alhough it does not validate).
+
+       * runtime/System/Private/DebuggerHelper.cs: Reformat code to fit 80
+       columns.
+
 2007-03-21  Klaus Treichel  <address@hidden>
 
        * runtime/System/Diagnostics/DebuggerNonUserCodeAttribute.cs,

Index: System.Xml/Schema/XmlSchemaCollection.cs
===================================================================
RCS file: 
/sources/dotgnu-pnet/pnetlib/System.Xml/Schema/XmlSchemaCollection.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- System.Xml/Schema/XmlSchemaCollection.cs    26 Jan 2003 00:20:30 -0000      
1.1
+++ System.Xml/Schema/XmlSchemaCollection.cs    24 Mar 2007 17:58:58 -0000      
1.2
@@ -2,7 +2,7 @@
  * XmlSchemaCollection.cs - Implementation of "XmlSchemaCollection" 
  *
  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
- * Copyright (C) 2003  FSF.
+ * Copyright (C) 2003  Free Software Foundation.
  * 
  * Authors : Autogenerated using csdoc2stub 
  *
@@ -21,72 +21,69 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+namespace System.Xml.Schema
+{
+
 using System;
 using System.Xml;
 using System.Collections;
 
-namespace System.Xml.Schema
+public class XmlSchemaCollection: IEnumerable, ICollection
 {
-       public class XmlSchemaCollection: IEnumerable, ICollection
-       {
                [TODO]
                public XmlSchemaCollection()
                {
-                        throw new NotImplementedException(".ctor");
                }
 
                [TODO]
                public XmlSchemaCollection(XmlNameTable nametable)
                {
-                        throw new NotImplementedException(".ctor");
                }
 
                [TODO]
                public XmlSchema Add(String ns, XmlReader reader)
                {
-                        throw new NotImplementedException("Add");
+                               return null;
                }
 
                [TODO]
                public XmlSchema Add(String ns, String uri)
                {
-                        throw new NotImplementedException("Add");
+                               return null;
                }
 
                [TODO]
                public XmlSchema Add(XmlSchema schema)
                {
-                        throw new NotImplementedException("Add");
+                               return null;
                }
 
                [TODO]
                public void Add(XmlSchemaCollection schema)
                {
-                        throw new NotImplementedException("Add");
                }
 
                [TODO]
                public bool Contains(String ns)
                {
-                        throw new NotImplementedException("Contains");
+                               return false;
                }
 
                [TODO]
                public bool Contains(XmlSchema schema)
                {
-                        throw new NotImplementedException("Contains");
+                               return false;
                }
 
                [TODO]
                public void CopyTo(XmlSchema[] array, int index)
                {
-                        throw new NotImplementedException("CopyTo");
                }
 
                [TODO]
                public XmlSchemaCollectionEnumerator GetEnumerator()
                {
-                        throw new NotImplementedException("GetEnumerator");
+                               return null;
                }
 
                [TODO]
@@ -94,7 +91,7 @@
                {
                        get
                        {
-                               throw new NotImplementedException("Count");
+                                       return 0;
                        }
                }
 
@@ -103,7 +100,7 @@
                {
                        get
                        {
-                               throw new NotImplementedException("Item");
+                                       return null;
                        }
                }
 
@@ -112,23 +109,25 @@
                {
                        get
                        {
-                               throw new NotImplementedException("NameTable");
+                                       return null;
                        }
                }
 
+       [TODO]
                bool ICollection.IsSynchronized
                {
                        get
                        {
-                               throw new 
NotImplementedException("ICollection.IsSynchronized");
+                                       return false;
                        }
                }
 
+       [TODO]
                Object ICollection.SyncRoot
                {
                        get
                        {
-                               throw new 
NotImplementedException("ICollection.SyncRoot");
+                                       return null;
                        }
                }
 
@@ -142,5 +141,6 @@
                        return (IEnumerator)(this.GetEnumerator());
                }
 
-       }
-}//namespace
+}; // class XmlSchemaCollection
+
+}; //namespace System.Xml.Schema

Index: runtime/System/Private/DebuggerHelper.cs
===================================================================
RCS file: 
/sources/dotgnu-pnet/pnetlib/runtime/System/Private/DebuggerHelper.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- runtime/System/Private/DebuggerHelper.cs    21 Mar 2007 08:54:16 -0000      
1.2
+++ runtime/System/Private/DebuggerHelper.cs    24 Mar 2007 17:58:59 -0000      
1.3
@@ -324,11 +324,13 @@
                                                                        
ParameterInfo[] paramInfo;
                                                                        if(mi 
is PropertyInfo)
                                                                        {
-                                                                               
paramInfo = ((PropertyInfo)(mi)).GetIndexParameters();
+                                                                               
paramInfo = ((PropertyInfo)(mi)).
+                                                                               
                                GetIndexParameters();
                                                                        }
                                                                        else
                                                                        {
-                                                                               
paramInfo = ((MethodInfo)(mi)).GetParameters();
+                                                                               
paramInfo = ((MethodInfo)(mi)).
+                                                                               
                                        GetParameters();
                                                                        }
                                                                        outArgs 
= CreateArguments(paramInfo, args);
                                                                }
@@ -389,7 +391,8 @@
        // Search assemblies in current app domain for type of given name.
        private static Type FindType(String typeName)
                        {
-                               foreach(Assembly assembly in 
AppDomain.CurrentDomain.GetAssemblies())
+                               foreach(Assembly assembly in 
+                                                                       
AppDomain.CurrentDomain.GetAssemblies())
                                {
                                        foreach(Type type in 
assembly.GetTypes())
                                        {
@@ -485,7 +488,7 @@
                        args = (String[]) list.ToArray(typeof(String));
                        return true;
                }
-       }
+       }; // class ExpressionParser
 
        // Information about function parameter or local variable.
        private class LocalWatch
@@ -558,7 +561,7 @@
                                        return count;
                                }
 
-       } // class LocalWatch
+       }; // class LocalWatch
 
 }; // class DebuggerHelper
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]