From: Owen R. <exo...@us...> - 2005-04-15 04:45:22
|
Update of /cvsroot/netreflector/NetReflector/src/NetReflector In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15960/src/NetReflector Modified Files: NetReflector.csproj NetReflectorTypeTable.cs Added Files: InvalidNodeEvent.cs Log Message: some refactoring of invalid node detection. now also detects duplicates. --- NEW FILE: InvalidNodeEvent.cs --- using System; using System.Xml; namespace Exortech.NetReflector { public delegate void InvalidNodeEventHandler(InvalidNodeEventArgs args); public class InvalidNodeEventArgs : EventArgs { public readonly XmlNode Node; public readonly string Message; public InvalidNodeEventArgs(XmlNode node, string message) { Node = node; Message = message; } } } Index: NetReflectorTypeTable.cs =================================================================== RCS file: /cvsroot/netreflector/NetReflector/src/NetReflector/NetReflectorTypeTable.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** NetReflectorTypeTable.cs 7 Apr 2005 04:30:39 -0000 1.5 --- NetReflectorTypeTable.cs 15 Apr 2005 04:45:09 -0000 1.6 *************** *** 3,16 **** using System.IO; using System.Reflection; - using System.Xml; using Exortech.NetReflector.Util; namespace Exortech.NetReflector { - public delegate void UnusedNodeEventHandler(XmlNode node); - public class NetReflectorTypeTable : IEnumerable { ! public event UnusedNodeEventHandler UnusedNode; private readonly IInstantiator instantiator; private readonly IDictionary reflectorTypes = new Hashtable(); --- 3,13 ---- using System.IO; using System.Reflection; using Exortech.NetReflector.Util; namespace Exortech.NetReflector { public class NetReflectorTypeTable : IEnumerable { ! public event InvalidNodeEventHandler InvalidNode; private readonly IInstantiator instantiator; private readonly IDictionary reflectorTypes = new Hashtable(); *************** *** 22,26 **** { this.instantiator = instantiator; ! UnusedNode = new UnusedNodeEventHandler(NullHandler); } --- 19,23 ---- { this.instantiator = instantiator; ! InvalidNode = new InvalidNodeEventHandler(NullHandler); } *************** *** 117,126 **** } ! public void OnUnusedNode(XmlNode orphan) { ! UnusedNode(orphan); } ! private void NullHandler(XmlNode node) {} } --- 114,123 ---- } ! public void OnInvalidNode(InvalidNodeEventArgs args) { ! InvalidNode(args); } ! private void NullHandler(InvalidNodeEventArgs args) {} } Index: NetReflector.csproj =================================================================== RCS file: /cvsroot/netreflector/NetReflector/src/NetReflector/NetReflector.csproj,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** NetReflector.csproj 7 Mar 2005 05:46:06 -0000 1.8 --- NetReflector.csproj 15 Apr 2005 04:45:09 -0000 1.9 *************** *** 90,93 **** --- 90,98 ---- /> <File + RelPath = "InvalidNodeEvent.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "NetReflector.cs" SubType = "Code" |