We need you! We're working hard on the next version of Developer Fusion -
Let us know what you think we should be up to!
-
Expand
Microsoft.Win32
-
Expand
Microsoft.Win32.SafeHandles
-
Expand
System
-
Expand
__Canon
-
Expand
__DTString
-
Expand
__Filters
-
Expand
__HResults
-
Expand
_AppDomain
-
Expand
AccessViolationException
-
Expand
Activator
-
Expand
ActivatorCache
-
Expand
ActivatorCacheEntry
-
Expand
AppDomain
-
Expand
AppDomainInitializerInfo
-
Expand
AppDomainManager
-
Expand
AppDomainManagerInitializationOptions
-
Expand
AppDomainSetup
-
Expand
AppDomainUnloadedException
-
Expand
ApplicationException
-
Expand
ApplicationId
-
Expand
ArgIterator
-
Expand
ArgumentException
-
Expand
ArgumentNullException
-
Expand
ArgumentOutOfRangeException
-
Expand
ArithmeticException
-
Expand
Array
-
Expand
ArrayEnumerator
-
Expand
ArraySegment
-
Expand
ArrayTypeMismatchException
-
Expand
AssemblyLoadEventArgs
-
Expand
ASSERT
-
Expand
Attribute
-
Expand
AttributeTargets
-
Expand
AttributeUsageAttribute
-
Expand
BadImageFormatException
-
Expand
Base64FormattingOptions
-
Expand
BCLDebug
-
Expand
BinderState
-
Expand
BitConverter
-
Expand
Boolean
-
Expand
Buffer
-
Expand
BuiltInUriParser
-
Expand
Byte
-
Expand
CacheType
-
Expand
CannotUnloadAppDomainException
-
Expand
Char
-
Expand
CharEnumerator
-
Expand
Check
-
Expand
CLSCompliantAttribute
-
Expand
CompatibilityFlag
-
Expand
ConfigEvents
-
Expand
ConfigNode
-
Expand
ConfigNodeSubType
-
Expand
ConfigNodeType
-
Expand
ConfigServer
-
Expand
ConfigTreeParser
-
BeginChildren(int, ConfigNodeSubType, ConfigNodeType, int, string, int, int)
-
CreateAttribute(int, ConfigNodeSubType, ConfigNodeType, int, string, int, int)
-
CreateNode(int, ConfigNodeSubType, ConfigNodeType, int, string, int, int)
-
EndChildren(int, int, ConfigNodeSubType, ConfigNodeType, int, string, int, int)
-
Error(int, ConfigNodeSubType, ConfigNodeType, int, string, int, int)
-
NotifyEvent(ConfigEvents)
-
Parse(string, string)
-
Parse(string, string, bool)
-
Trace(string, int, ConfigNodeSubType, ConfigNodeType, int, string, int, int, int)
-
Expand
Console
-
Expand
ConsoleCancelEventArgs
-
Expand
ConsoleSpecialKey
-
Expand
ContextBoundObject
-
Expand
ContextMarshalException
-
Expand
ContextStaticAttribute
-
Expand
ControlCDelegateData
-
Expand
ControlCHooker
-
Expand
Convert
-
Expand
CultureAwareComparer
-
Expand
Currency
-
Expand
CurrentSystemTimeZone
-
Expand
DataMisalignedException
-
Expand
DateTime
-
Expand
DateTimeFormat
-
Expand
DateTimeKind
-
Expand
DateTimeParse
-
Expand
DateTimeRawInfo
-
Expand
DateTimeResult
-
Expand
DateTimeToken
-
Expand
DayOfWeek
-
Expand
DBNull
-
Expand
Decimal
-
Expand
DefaultBinder
-
Expand
Delegate
-
Expand
DelegateBindingFlags
-
Expand
DelegateEntry
-
Expand
DelegateSerializationHolder
-
Expand
DivideByZeroException
-
Expand
DllNotFoundException
-
Expand
DomainNameHelper
-
Expand
Double
-
Expand
DS
-
Expand
DTSubString
-
Expand
DTSubStringType
-
Expand
DTT
-
Expand
DuplicateWaitObjectException
-
Expand
Empty
-
Expand
EntryPointNotFoundException
-
Expand
Enum
-
Expand
Environment
-
Expand
EventArgs
-
Expand
EvidenceCollection
-
Expand
Exception
-
Expand
ExceptionArgument
-
Expand
ExceptionArgument
-
Expand
ExceptionMessageKind
-
Expand
ExceptionResource
-
Expand
ExceptionResource
-
Expand
ExecutionEngineException
-
Expand
ExternDll
-
Expand
FastArrayHandle
-
Expand
FieldAccessException
-
Expand
FileStyleUriParser
-
Expand
Filter
-
Expand
Flags
-
Expand
FlagsAttribute
-
Expand
FormatException
-
Expand
FtpStyleUriParser
-
Expand
FunctorComparer
-
Expand
GC
-
Expand
GenericUriParser
-
Expand
GenericUriParserOptions
-
Expand
GetResourceStringUserData
-
Expand
GopherStyleUriParser
-
Expand
Guid
-
Expand
HashEntry
-
Expand
HResults
-
Expand
HttpStyleUriParser
-
Expand
IAppDomainSetup
-
Expand
IAsyncResult
-
Expand
ICloneable
-
Expand
IComparable
-
Expand
IComparable
-
Expand
IConfigHandler
-
Expand
IConvertible
-
Expand
ICustomFormatter
-
Expand
IDisposable
-
Expand
IEquatable
-
Expand
IFormatProvider
-
Expand
IFormattable
-
Expand
IndexOutOfRangeException
-
Expand
InsufficientMemoryException
-
Expand
Int16
-
Expand
Int32
-
Expand
Int64
-
Expand
Internal
-
Expand
IntPtr
-
Expand
InvalidCastException
-
Expand
InvalidOperationException
-
Expand
InvalidProgramException
-
Expand
InvariantComparer
-
Expand
IPv4AddressHelper
-
Expand
IPv6AddressHelper
-
Expand
IServiceProvider
-
Expand
ItemInfo
-
Expand
LdapStyleUriParser
-
Expand
LdsSyncHelper
-
Expand
LoaderInformation
-
Expand
LoaderOptimization
-
Expand
LoaderOptimizationAttribute
-
Expand
LocalDataStore
-
Expand
LocalDataStoreMgr
-
Expand
LocalDataStoreSlot
-
Expand
LOGIC
-
Expand
LogLevel
-
Expand
MarshalByRefObject
-
Expand
Math
-
Expand
MemberAccessException
-
Expand
MemberInfoCache
-
Expand
MethodAccessException
-
Expand
MethodDescChunkHandle
-
Expand
MidpointRounding
-
Expand
MissingFieldException
-
Expand
MissingMemberException
-
Expand
MissingMethodException
-
Expand
MoreInfo
-
Expand
MTAThreadAttribute
-
Expand
MulticastDelegate
-
Expand
MulticastNotSupportedException
-
Expand
NetPipeStyleUriParser
-
Expand
NetTcpStyleUriParser
-
Expand
NewsStyleUriParser
-
Expand
NonSerializedAttribute
-
Expand
NotFiniteNumberException
-
Expand
NotImplementedException
-
Expand
NotSupportedException
-
Expand
Nullable
-
Expand
Nullable
-
Expand
NullReferenceException
-
Expand
Number
-
Expand
NumberBuffer
-
Expand
Object
-
Expand
ObjectDisposedException
-
Expand
ObsoleteAttribute
-
Expand
Offset
-
Expand
OleAutBinder
-
Expand
OperatingSystem
-
Expand
OperationCanceledException
-
Expand
OrdinalComparer
-
Expand
OutOfMemoryException
-
Expand
OverflowException
-
Expand
ParamArrayAttribute
-
Expand
ParseError
-
Expand
ParseFailureKind
-
Expand
ParseFlags
-
Expand
ParseNumbers
-
Expand
ParsingError
-
Expand
ParsingInfo
-
Expand
PlatformID
-
Expand
PlatformNotSupportedException
-
Expand
Random
-
Expand
RankException
-
Expand
ReflectionOnlyType
-
Expand
ResId
-
Expand
ResolveEventArgs
-
Expand
ResourceHelper
-
Expand
RuntimeArgumentHandle
-
Expand
RuntimeType
-
Expand
RuntimeTypeCache
-
Expand
RuntimeTypeHandle
-
Expand
SByte
-
Expand
SerializableAttribute
-
Expand
SharedStatics
-
Expand
Single
-
Expand
SorterGenericArray
-
Expand
SorterObjectArray
-
Expand
StackOverflowException
-
Expand
STAThreadAttribute
-
Expand
String
-
Expand
StringComparer
-
Expand
StringComparison
-
Expand
StringParser
-
Expand
StringSplitOptions
-
Expand
SwitchStructure
-
Expand
SystemException
-
Expand
SZArrayEnumerator
-
Expand
SZArrayHelper
-
Expand
SZGenericArrayEnumerator
-
Expand
ThreadStaticAttribute
-
Expand
ThrowHelper
-
Expand
ThrowHelper
-
Expand
TimeoutException
-
Expand
TimeSpan
-
Expand
TimeZone
-
Expand
TM
-
Expand
TokenType
-
Expand
Type
-
Expand
TypeCacheQueue
-
Expand
TypeCode
-
Expand
TypedReference
-
Expand
TypeInitializationException
-
Expand
TypeLoadException
-
Expand
TypeUnloadedException
-
Expand
UInt16
-
Expand
UInt32
-
Expand
UInt64
-
Expand
UIntPtr
-
Expand
UnauthorizedAccessException
-
Expand
UncNameHelper
-
Expand
UnescapeMode
-
Expand
UnhandledExceptionEventArgs
-
Expand
UnitySerializationHolder
-
Expand
UnSafeCharBuffer
-
Expand
Uri
-
Expand
Uri
-
Expand
UriBuilder
-
Expand
UriComponents
-
Expand
UriFormat
-
Expand
UriFormatException
-
Expand
UriHostNameType
-
Expand
UriInfo
-
Expand
UriKind
-
Expand
UriParser
-
Expand
UriParser
-
Expand
UriPartial
-
Expand
UriSyntaxFlags
-
Expand
UriTypeConverter
-
Expand
Utf8String
-
Expand
ValueType
-
Expand
Variant
-
Expand
Version
-
Expand
Void
-
Expand
WeakReference
-
Expand
WhatsCached
-
Expand
XmlIgnoreMemberAttribute
-
Expand
System.Runtime.Hosting
-
Expand
System.Runtime.InteropServices
-
Expand
System.Runtime.CompilerServices
-
Expand
System.Collections
-
Expand
System.Collections.Generic
-
Expand
System.Collections.ObjectModel
-
Expand
System.Configuration.Assemblies
-
Expand
System.Diagnostics
-
Expand
System.Diagnostics.CodeAnalysis
-
Expand
System.Diagnostics.SymbolStore
-
Expand
System.Globalization
-
Expand
System.IO
-
Expand
System.IO.IsolatedStorage
-
Expand
System.Reflection
-
Expand
System.Reflection.Cache
-
Expand
System.Reflection.Emit
-
Expand
System.Resources
-
Expand
System.Runtime
-
Expand
System.Runtime.InteropServices.Expando
-
Expand
System.Runtime.ConstrainedExecution
-
Expand
System.Runtime.Remoting.Activation
-
Expand
System.Runtime.Remoting.Messaging
-
Expand
System.Runtime.Remoting.Channels
-
Expand
System.Runtime.Remoting.Lifetime
-
Expand
System.Runtime.Remoting
-
Expand
System.Runtime.Remoting.Contexts
-
Expand
System.Runtime.Remoting.Proxies
-
Expand
System.Runtime.Remoting.Metadata
-
Expand
System.Runtime.Remoting.Metadata.W3cXsd2001
-
Expand
System.Runtime.Remoting.Services
-
Expand
System.Runtime.Serialization
-
Expand
System.Runtime.Serialization.Formatters
-
Expand
System.Runtime.Serialization.Formatters.Binary
-
Expand
System.Runtime.Versioning
-
Expand
System.Security
-
Expand
System.Security.Cryptography
-
Expand
System.Security.Cryptography.X509Certificates
-
Expand
System.Security.Permissions
-
Expand
System.Security.Policy
-
Expand
System.Security.Principal
-
Expand
System.Security.Util
-
Expand
System.Text
-
Expand
System.Threading
-
Expand
System.Runtime.Remoting.Channels.Http
-
Expand
System.Runtime.Remoting.Channels.Tcp
-
Expand
System.Runtime.Remoting.MetadataServices
-
Expand
System.Runtime.Serialization.Formatters.Soap.Xml
-
Expand
System.Runtime.Serialization.Formatters.Soap
-
Expand
Microsoft.Tools.Caspol
-
Expand
Microsoft.Tools.Build
-
Expand
Microsoft.CSharp
-
Expand
System.CodeDom
-
Expand
System.CodeDom.Compiler
-
Expand
System.Collections.Specialized
-
Expand
System.ComponentModel
-
Expand
System.ComponentModel.Design
-
Expand
System.ComponentModel.Design.Serialization
-
Expand
System.Configuration
-
Expand
System.Web
-
Expand
System.Configuration.Provider
-
Expand
System.Configuration.Internal
-
Expand
System.Internal
-
Expand
System.Windows.Forms
-
Expand
System.Net
-
Expand
System.Net.Sockets
-
Expand
System.Net.NetworkInformation
-
Expand
System.Net.ComImports
-
Expand
System.Net.Security
-
Expand
System.Net.Cache
-
Expand
System.Net.Configuration
-
Expand
System.Text.RegularExpressions
-
Expand
System.Tools
-
Expand
System.IO.Compression
-
Expand
System.IO.Ports
-
Expand
System.Security.AccessControl
-
Expand
System.Xml
-
Expand
System.Xml.XPath.DataBinding
-
Expand
System.Xml.Schema
-
Expand
System.Xml.Serialization
-
Expand
System.Xml.Serialization.Advanced
-
Expand
System.Xml.Serialization.Configuration
-
Expand
System.Xml.XPath
-
Expand
System.Xml.Xsl
-
Expand
System.Xml.Xsl.IlGen
-
Expand
System.Xml.Xsl.Qil
-
Expand
System.Xml.Xsl.Runtime
-
Expand
System.Xml.Xsl.XPath
-
Expand
System.Xml.Xsl.Xslt
-
Expand
System.Xml.Xsl.XsltOld
-
Expand
System.Xml.Xsl.XsltOld.Debugger
-
Expand
Microsoft.JScript
-
Expand
Microsoft.Vsa
-
Expand
Microsoft.JScript.Vsa
- namespace System
- {
- using System.Runtime.InteropServices;
- using System.Collections;
- using System.Runtime.CompilerServices;
- using System.Security.Permissions;
- using System.Security;
- using System.Globalization;
- using System.IO;
- using System.Runtime.Versioning;
-
- [Serializable()]
- internal enum ConfigEvents
- {
- StartDocument = 0,
- StartDTD = StartDocument + 1,
- EndDTD = StartDTD + 1,
- StartDTDSubset = EndDTD + 1,
- EndDTDSubset = StartDTDSubset + 1,
- EndProlog = EndDTDSubset + 1,
- StartEntity = EndProlog + 1,
- EndEntity = StartEntity + 1,
- EndDocument = EndEntity + 1,
- DataAvailable = EndDocument + 1,
- LastEvent = DataAvailable
- }
-
- [Serializable()]
- internal enum ConfigNodeType
- {
- Element = 1,
- Attribute = Element + 1,
- Pi = Attribute + 1,
- XmlDecl = Pi + 1,
- DocType = XmlDecl + 1,
- DTDAttribute = DocType + 1,
- EntityDecl = DTDAttribute + 1,
- ElementDecl = EntityDecl + 1,
- AttlistDecl = ElementDecl + 1,
- Notation = AttlistDecl + 1,
- Group = Notation + 1,
- IncludeSect = Group + 1,
- PCData = IncludeSect + 1,
- CData = PCData + 1,
- IgnoreSect = CData + 1,
- Comment = IgnoreSect + 1,
- EntityRef = Comment + 1,
- Whitespace = EntityRef + 1,
- Name = Whitespace + 1,
- NMToken = Name + 1,
- String = NMToken + 1,
- Peref = String + 1,
- Model = Peref + 1,
- ATTDef = Model + 1,
- ATTType = ATTDef + 1,
- ATTPresence = ATTType + 1,
- DTDSubset = ATTPresence + 1,
- LastNodeType = DTDSubset + 1
- }
-
- [Serializable()]
- internal enum ConfigNodeSubType
- {
- Version = (int)ConfigNodeType.LastNodeType,
- Encoding = Version + 1,
- Standalone = Encoding + 1,
- NS = Standalone + 1,
- XMLSpace = NS + 1,
- XMLLang = XMLSpace + 1,
- System = XMLLang + 1,
- Public = System + 1,
- NData = Public + 1,
- AtCData = NData + 1,
- AtId = AtCData + 1,
- AtIdref = AtId + 1,
- AtIdrefs = AtIdref + 1,
- AtEntity = AtIdrefs + 1,
- AtEntities = AtEntity + 1,
- AtNmToken = AtEntities + 1,
- AtNmTokens = AtNmToken + 1,
- AtNotation = AtNmTokens + 1,
- AtRequired = AtNotation + 1,
- AtImplied = AtRequired + 1,
- AtFixed = AtImplied + 1,
- PentityDecl = AtFixed + 1,
- Empty = PentityDecl + 1,
- Any = Empty + 1,
- Mixed = Any + 1,
- Sequence = Mixed + 1,
- Choice = Sequence + 1,
- Star = Choice + 1,
- Plus = Star + 1,
- Questionmark = Plus + 1,
- LastSubNodeType = Questionmark + 1
- }
-
- [Guid("afd0d21f-72f8-4819-99ad-3f255ee5006b"), InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
- internal interface IConfigHandler
- {
-
- void NotifyEvent(ConfigEvents nEvent);
-
- void BeginChildren(int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength);
-
- void EndChildren(int fEmpty, int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength);
-
- void Error(int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength);
-
- void CreateNode(int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength);
-
- void CreateAttribute(int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength);
- }
-
- static internal class ConfigServer
- {
- [MethodImplAttribute(MethodImplOptions.InternalCall)]
- static internal extern void RunParser(IConfigHandler factory, string fileName);
- }
-
-
- internal class ConfigTreeParser : IConfigHandler
- {
- ConfigNode rootNode = null;
- ConfigNode currentNode = null;
- string lastProcessed = null;
- string fileName = null;
- int attributeEntry;
- string key = null;
- string[] treeRootPath = null;
-
- bool parsing = false;
- int depth = 0;
- int pathDepth = 0;
- int searchDepth = 0;
- bool bNoSearchPath = false;
-
-
-
- [ResourceExposure(ResourceScope.Machine)]
- [ResourceConsumption(ResourceScope.Machine)]
- internal ConfigNode Parse(string fileName, string configPath)
- {
- return Parse(fileName, configPath, false);
- }
-
- [ResourceExposure(ResourceScope.Machine)]
- [ResourceConsumption(ResourceScope.Machine)]
- internal ConfigNode Parse(string fileName, string configPath, bool skipSecurityStuff)
- {
- if (fileName == null)
- throw new ArgumentNullException("fileName");
- this.fileName = fileName;
- if (configPath[0] == '/') {
- treeRootPath = configPath.Substring(1).Split('/');
- pathDepth = treeRootPath.Length - 1;
- bNoSearchPath = false;
- }
- else {
- treeRootPath = new string[1];
- treeRootPath[0] = configPath;
- bNoSearchPath = true;
- }
-
- if (!skipSecurityStuff) {
- (new FileIOPermission(FileIOPermissionAccess.Read, System.IO.Path.GetFullPathInternal(fileName))).Demand();
- }
- (new SecurityPermission(SecurityPermissionFlag.UnmanagedCode)).Assert();
-
- try {
- ConfigServer.RunParser(this, fileName);
- }
- catch (FileNotFoundException) {
- throw;
-
- }
- catch (DirectoryNotFoundException) {
- throw;
-
- }
- catch (UnauthorizedAccessException) {
- throw;
- }
- catch (FileLoadException) {
- throw;
- }
- catch (Exception inner) {
- throw new ApplicationException(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("XML_Syntax_InvalidSyntaxInFile"), fileName, lastProcessed), inner);
- }
- catch {
- throw new ApplicationException(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("XML_Syntax_InvalidSyntaxInFile"), fileName, lastProcessed));
- }
- return rootNode;
- }
-
- public void NotifyEvent(ConfigEvents nEvent)
- {
- BCLDebug.Trace("REMOTE", "NotifyEvent " + ((Enum)nEvent).ToString() + "\n");
- }
-
- public void BeginChildren(int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength)
- {
-
- if (!parsing && (!bNoSearchPath && depth == (searchDepth + 1) && String.Compare(text, treeRootPath[searchDepth], StringComparison.Ordinal) == 0)) {
- searchDepth++;
- }
- }
-
- public void EndChildren(int fEmpty, int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength)
- {
- lastProcessed = "</" + text + ">";
- if (parsing) {
-
-
- if (currentNode == rootNode) {
-
- parsing = false;
- }
-
- currentNode = currentNode.Parent;
- }
- else if (nType == ConfigNodeType.Element) {
- if (depth == searchDepth && String.Compare(text, treeRootPath[searchDepth - 1], StringComparison.Ordinal) == 0) {
- searchDepth--;
- depth--;
- }
- else
- depth--;
- }
-
- }
-
- public void Error(int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength)
- {
-
- }
-
-
- public void CreateNode(int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength)
- {
-
-
- if (nType == ConfigNodeType.Element) {
-
- lastProcessed = "<" + text + ">";
- if (parsing || (bNoSearchPath && String.Compare(text, treeRootPath[0], StringComparison.OrdinalIgnoreCase) == 0) || (depth == searchDepth && searchDepth == pathDepth && String.Compare(text, treeRootPath[pathDepth], StringComparison.OrdinalIgnoreCase) == 0)) {
- parsing = true;
-
- ConfigNode parentNode = currentNode;
- currentNode = new ConfigNode(text, parentNode);
- if (rootNode == null)
- rootNode = currentNode;
- else
- parentNode.AddChild(currentNode);
- }
- else
- depth++;
- }
- else if (nType == ConfigNodeType.PCData) {
-
- if (currentNode != null) {
- currentNode.Value = text;
- }
- }
- }
-
- public void CreateAttribute(int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength)
- {
-
- if (parsing) {
-
-
- if (nType == ConfigNodeType.Attribute) {
- attributeEntry = currentNode.AddAttribute(text, "");
- key = text;
- }
- else if (nType == ConfigNodeType.PCData) {
- currentNode.ReplaceAttribute(attributeEntry, key, text);
- }
- else
- throw new ApplicationException(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("XML_Syntax_InvalidSyntaxInFile"), fileName, lastProcessed));
- }
- }
-
- [System.Diagnostics.Conditional("_LOGGING")]
- private void Trace(string name, int size, ConfigNodeSubType subType, ConfigNodeType nType, int terminal, [MarshalAs(UnmanagedType.LPWStr)]
- string text, int textLength, int prefixLength, int fEmpty)
- {
-
- BCLDebug.Trace("REMOTE", "Node " + name);
- BCLDebug.Trace("REMOTE", "text " + text);
- BCLDebug.Trace("REMOTE", "textLength " + textLength);
- BCLDebug.Trace("REMOTE", "size " + size);
- BCLDebug.Trace("REMOTE", "subType " + ((Enum)subType).ToString());
- BCLDebug.Trace("REMOTE", "nType " + ((Enum)nType).ToString());
- BCLDebug.Trace("REMOTE", "terminal " + terminal);
- BCLDebug.Trace("REMOTE", "prefixLength " + prefixLength);
- BCLDebug.Trace("REMOTE", "fEmpty " + fEmpty + "\n");
-
- }
- }
-
-
- internal class ConfigNode
- {
- string m_name = null;
- string m_value = null;
- ConfigNode m_parent = null;
- ArrayList m_children = new ArrayList(5);
- ArrayList m_attributes = new ArrayList(5);
-
- internal ConfigNode(string name, ConfigNode parent)
- {
- m_name = name;
- m_parent = parent;
- }
-
- internal string Name {
- get { return m_name; }
- }
-
- internal string Value {
- get { return m_value; }
- set { m_value = value; }
- }
-
- internal ConfigNode Parent {
- get { return m_parent; }
- }
-
- internal ArrayList Children {
- get { return m_children; }
- }
-
- internal ArrayList Attributes {
- get { return m_attributes; }
- }
-
- internal void AddChild(ConfigNode child)
- {
- child.m_parent = this;
- m_children.Add(child);
- }
-
- internal int AddAttribute(string key, string value)
- {
- m_attributes.Add(new DictionaryEntry(key, value));
- return m_attributes.Count - 1;
- }
-
- internal void ReplaceAttribute(int index, string key, string value)
- {
- m_attributes[index] = new DictionaryEntry(key, value);
- }
-
-
- [System.Diagnostics.Conditional("_LOGGING")]
- internal void Trace()
- {
- BCLDebug.Trace("REMOTE", "************ConfigNode************");
- BCLDebug.Trace("REMOTE", "Name = " + m_name);
- if (m_value != null)
- BCLDebug.Trace("REMOTE", "Value = " + m_value);
- if (m_parent != null)
- BCLDebug.Trace("REMOTE", "Parent = " + m_parent.Name);
- for (int i = 0; i < m_attributes.Count; i++) {
- DictionaryEntry de = (DictionaryEntry)m_attributes[i];
- BCLDebug.Trace("REMOTE", "Key = " + de.Key + " Value = " + de.Value);
- }
-
- for (int i = 0; i < m_children.Count; i++) {
- ((ConfigNode)m_children[i]).Trace();
- }
- }
- }
- }