+2004-08-16 Duncan Mak <duncan@ximian.com>
+
+ * System.dll.sources: Added new classes in System.Configuration.
+
2004-07-14 Atsushi Enomoto <atsushi@ximian.com>
* System.dll.sources:
+2004-08-16 Duncan Mak <duncan@ximian.com>
+
+ * NameObjectCollectionBase.cs: Fix line endings. It's mostly in
+ DOS endings, so I left it at that.
+ (GetEnumerator): Made virtual.
+
2004-06-14 Sebastien Pouliot <sebastien@ximian.com>
* HybridDictionary.cs: Fixed Contains for null argument (again). Return
-//
-// System.Collections.Specialized.NameObjectCollectionBase.cs
-//
-// Author:
-// Gleb Novodran
-// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
-//
-// (C) Ximian, Inc. http://www.ximian.com
//\r
-
-//
-// 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.
-//
+// System.Collections.Specialized.NameObjectCollectionBase.cs\r
+//\r
+// Author:\r
+// Gleb Novodran\r
+// Andreas Nahr (ClassDevelopment@A-SoftTech.com)\r
+//\r
+// (C) Ximian, Inc. http://www.ximian.com\r
+//\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
\r
using System;\r
using System.Collections;\r
private IComparer m_comparer;\r
private int m_defCapacity;\r
private bool m_readonly;\r
- SerializationInfo infoCopy;
+ SerializationInfo infoCopy;\r
\r
internal IComparer Comparer {\r
get {return m_comparer;}\r
\r
/// <summary>\r
/// SDK: Represents a collection of the String keys of a collection.\r
- /// </summary>
+ /// </summary>\r
[Serializable]\r
public class KeysCollection : ICollection, IEnumerable\r
{\r
m_NullKeyItem = null; */\r
//throw new Exception("Not implemented yet");\r
}\r
-
- protected NameObjectCollectionBase (SerializationInfo info, StreamingContext context)
- {
- infoCopy = info;
- }
-
+\r
+ protected NameObjectCollectionBase (SerializationInfo info, StreamingContext context)\r
+ {\r
+ infoCopy = info;\r
+ }\r
+\r
protected NameObjectCollectionBase( int capacity, IHashCodeProvider hashProvider, IComparer comparer )\r
{\r
m_readonly = false;\r
/// <remark>This enumerator returns the keys of the collection as strings.</remark>\r
/// </summary>\r
/// <returns></returns>\r
- public IEnumerator GetEnumerator()\r
+ public virtual IEnumerator GetEnumerator()\r
{\r
return new _KeysEnumerator(this);\r
}\r
// GetHashCode\r
-
- // ISerializable
- public virtual void GetObjectData (SerializationInfo info, StreamingContext context)
- {
- if (info == null)
- throw new ArgumentNullException ("info");
-
- int count = Count;
- string [] keys = new string [count];
- object [] values = new object [count];
- int i = 0;
- foreach (_Item item in m_ItemsArray) {
- keys [i] = item.key;
- values [i] = item.value;
- i++;
- }
-
- info.AddValue ("m_hashprovider", m_hashprovider);
- info.AddValue ("m_comparer", m_comparer);
- info.AddValue ("m_readonly", m_readonly);
- info.AddValue ("keys", keys);
- info.AddValue ("values", values);
- }
-
+\r
+ // ISerializable\r
+ public virtual void GetObjectData (SerializationInfo info, StreamingContext context)\r
+ {\r
+ if (info == null)\r
+ throw new ArgumentNullException ("info");\r
+\r
+ int count = Count;\r
+ string [] keys = new string [count];\r
+ object [] values = new object [count];\r
+ int i = 0;\r
+ foreach (_Item item in m_ItemsArray) {\r
+ keys [i] = item.key;\r
+ values [i] = item.value;\r
+ i++;\r
+ }\r
+\r
+ info.AddValue ("m_hashprovider", m_hashprovider);\r
+ info.AddValue ("m_comparer", m_comparer);\r
+ info.AddValue ("m_readonly", m_readonly);\r
+ info.AddValue ("keys", keys);\r
+ info.AddValue ("values", values);\r
+ }\r
+\r
// ICollection\r
public virtual int Count \r
{\r
{\r
throw new NotImplementedException ();\r
}\r
-
-
- // IDeserializationCallback
- public virtual void OnDeserialization (object sender)
- {
- SerializationInfo info = infoCopy;
- if (info == null)
- throw new SerializationException ("The object is not a SerializationInfo");
-
- infoCopy = null;
- m_hashprovider = (IHashCodeProvider) info.GetValue ("m_hashprovider",
- typeof (IHashCodeProvider));
-
- if (m_hashprovider == null)
- throw new SerializationException ("The hash provider is null");
-
- m_comparer = (IComparer) info.GetValue ("m_comparer", typeof (IComparer));
- if (m_comparer == null)
- throw new SerializationException ("The comparer is null");
-
- m_readonly = info.GetBoolean ("m_readonly");
- string [] keys = (string []) info.GetValue ("keys", typeof (string []));
- if (keys == null)
- throw new SerializationException ("keys is null");
-
- object [] values = (object []) info.GetValue ("values", typeof (object []));
- if (values == null)
- throw new SerializationException ("values is null");
-
- Init ();
- int count = keys.Length;
- for (int i = 0; i < count; i++)
- BaseAdd (keys [i], values [i]);
- }
+\r
+\r
+ // IDeserializationCallback\r
+ public virtual void OnDeserialization (object sender)\r
+ {\r
+ SerializationInfo info = infoCopy;\r
+ if (info == null)\r
+ throw new SerializationException ("The object is not a SerializationInfo");\r
+\r
+ infoCopy = null;\r
+ m_hashprovider = (IHashCodeProvider) info.GetValue ("m_hashprovider",\r
+ typeof (IHashCodeProvider));\r
+\r
+ if (m_hashprovider == null)\r
+ throw new SerializationException ("The hash provider is null");\r
+\r
+ m_comparer = (IComparer) info.GetValue ("m_comparer", typeof (IComparer));\r
+ if (m_comparer == null)\r
+ throw new SerializationException ("The comparer is null");\r
+\r
+ m_readonly = info.GetBoolean ("m_readonly");\r
+ string [] keys = (string []) info.GetValue ("keys", typeof (string []));\r
+ if (keys == null)\r
+ throw new SerializationException ("keys is null");\r
+\r
+ object [] values = (object []) info.GetValue ("values", typeof (object []));\r
+ if (values == null)\r
+ throw new SerializationException ("values is null");\r
+\r
+ Init ();\r
+ int count = keys.Length;\r
+ for (int i = 0; i < count; i++)\r
+ BaseAdd (keys [i], values [i]);\r
+ }\r
//--------------- Protected Instance Properties ----------------\r
/// <summary>\r
/// SDK: Gets or sets a value indicating whether the NameObjectCollectionBase instance is read-only.\r
m_ItemsContainer.Add(name,newitem);\r
}\r
m_ItemsArray.Add(newitem);\r
- }
-
+ }\r
+\r
protected void BaseClear()\r
{\r
if (this.IsReadOnly)\r
allValues[i] = BaseGet(i);\r
\r
return allValues;\r
- }
+ }\r
\r
protected object[] BaseGetAllValues( Type type )\r
{\r
return (m_ItemsContainer.Count>0);\r
// throw new Exception("Not implemented yet");\r
}\r
-
+\r
protected void BaseRemove( string name )\r
{\r
int cnt = 0;\r
i++;\r
\r
}\r
- }
+ }\r
\r
/// <summary>\r
/// \r
--- /dev/null
+//
+// System.Configuration.AppSettingsSection.cs
+//
+// Authors:
+// Duncan Mak (duncan@ximian.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.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+#if XML_DEP
+using System;
+using System.Collections.Specialized;
+using System.Xml;
+
+namespace System.Configuration {
+
+ public sealed class AppSettingsSection : ConfigurationSection
+ {
+ public AppSettingsSection ()
+ {
+ }
+
+ protected internal override bool IsModified ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected internal override void ReadXml (XmlReader reader, object context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected internal override void Reset (
+ ConfigurationElement parent_section, object context)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected internal override void ResetModified ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected internal override string WriteXml (
+ ConfigurationElement parent, object context, string name, ConfigurationUpdateMode mode)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public string File {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
+ }
+
+ public NameValueCollection Settings {
+ get { throw new NotImplementedException (); }
+ }
+ }
+}
+#endif
+#endif
+2004-08-16 Duncan Mak <duncan@ximian.com>
+
+ * ConfigurationElement.cs (InitializeDefault): Made virtual.
+
+ * AppSettingsSection.cs:
+ * Configuration.cs:
+ * ConfigurationLocation.cs:
+ * ConfigurationLocationCollection.cs:
+ * ConfigurationSection.cs:
+ * ConfigurationSectionCollection.cs:
+ * ConfigurationSectionGroup.cs:
+ * ConfigurationSectionGroupCollection.cs:
+ * ConnectionStringsSection.cs: Added stubs and bits of implementation.
+
+ Other than ConfigurationElementCollection and
+ ConnectionStringsSectionCollection, we now have the basic skeleton
+ for implementing the configuration system in the
+ System.Configuration namespace.
+
2004-08-11 Duncan Mak <duncan@ximian.com>
* ProtectedConfigurationProvider.cs: Use XML_DEP.
2004-08-11 Duncan Mak <duncan@ximian.com>
+ * ProtectedConfigurationProvider.cs:
* ProviderBase.cs: Implemented.
* ConfigurationPropertyAttribute.cs: Implemented attribute.
--- /dev/null
+//
+// System.Configuration.ConfigurationLocation.cs
+//
+// Authors:
+// Duncan Mak (duncan@ximian.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.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+#if NET_2_0
+using System;
+
+namespace System.Configuration {
+
+ public sealed class Configuration
+ {
+ internal Configuration ()
+ {
+ }
+
+ public AppSettingsSection AppSettings {
+ get { throw new NotImplementedException (); }
+ }
+
+ public PathLevel ConfigurationPathLevel {
+ get { throw new NotImplementedException (); }
+ }
+
+ public ConnectionStringsSection ConnectionStrings {
+ get { throw new NotImplementedException (); }
+ }
+
+ public string FilePath {
+ get { throw new NotImplementedException (); }
+ }
+
+ public bool HasFile {
+ get { throw new NotImplementedException (); }
+ }
+
+ public ConfigurationLocationCollection Locations {
+ get { throw new NotImplementedException (); }
+ }
+
+ public string Path {
+ get { throw new NotImplementedException (); }
+ }
+
+ public ConfigurationSectionGroup RootSectionGroup {
+ get { throw new NotImplementedException (); }
+ }
+
+ public ConfigurationSectionGroupCollection SectionGroups {
+ get { throw new NotImplementedException (); }
+ }
+
+ public ConfigurationSectionCollection Sections {
+ get { throw new NotImplementedException (); }
+ }
+
+ public static Configuration GetExeConfiguration (string path, ConfigurationUserLevel level)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetMachineConfiguration ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetMachineConfiguration (string path)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetMachineConfiguration (string path, string server)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetMachineConfiguration (
+ string path, string server, IntPtr user_token)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetMachineConfiguration (
+ string path, string server, string username, string password)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetWebConfiguration ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetWebConfiguration (string path)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetWebConfiguration (string path, string site)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetWebConfiguration (string path, string site, string subpath)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetWebConfiguration (
+ string path, string site, string subpath, string server)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetWebConfiguration (
+ string path, string site, string subpath, string server, IntPtr user_token)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Configuration GetWebConfiguration (
+ string path, string site, string subpath, string server, string username, string password)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+#endif
throw new NotImplementedException ();
}
- protected internal void InitializeDefault ()
+ protected internal virtual void InitializeDefault ()
{
throw new NotImplementedException ();
}
--- /dev/null
+//
+// System.Configuration.ConfigurationLocation.cs
+//
+// Authors:
+// Duncan Mak (duncan@ximian.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.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+
+namespace System.Configuration {
+
+ public class ConfigurationLocation
+ {
+ string path;
+
+ public string Path {
+ get { return path; }
+ }
+
+ public Configuration GetConfiguration ()
+ {
+ return null;
+ }
+ }
+}
+
+#endif
--- /dev/null
+//
+// System.Configuration.ConfigurationLocation.cs
+//
+// Authors:
+// Duncan Mak (duncan@ximian.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.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+
+using System.Collections;
+
+namespace System.Configuration {
+
+ public class ConfigurationLocationCollection : ReadOnlyCollectionBase
+ {
+ public ConfigurationLocation this [int index] {
+ get { return this [index] as ConfigurationLocation; }
+ }
+ }
+}
+
+#endif
--- /dev/null
+//
+// System.Configuration.ConfigurationSection.cs
+//
+// Authors:
+// Duncan Mak (duncan@ximian.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.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+using System.Collections;
+using System.Xml;
+
+namespace System.Configuration
+{
+ public abstract class ConfigurationSection : ConfigurationElement
+ {
+ ConfigurationSection parent;
+
+ ConfigurationAllowDefinition allow_definition;
+ bool allow_location, allow_override;
+ bool inherit_on_child_apps;
+ bool restart_on_external_changes;
+
+ string config_source;
+ bool force_update, is_declared, is_locked, is_protected;
+ string name, path, type_name;
+
+ ProtectedConfigurationProvider protected_provider;
+
+ public ConfigurationSection ()
+ {
+ allow_definition = ConfigurationAllowDefinition.Everywhere;
+ allow_location = true;
+ allow_override = true;
+ inherit_on_child_apps = true;
+ restart_on_external_changes = true;
+ }
+
+ public ConfigurationAllowDefinition AllowDefinition {
+ get { return allow_definition; }
+ set { allow_definition = value; }
+ }
+
+ public bool AllowLocation {
+ get { return allow_location; }
+ set { allow_location = value; }
+ }
+
+ public bool AllowOverride {
+ get { return allow_override; }
+ set { allow_override = value; }
+ }
+
+ public string ConfigSource {
+ get { return config_source; }
+ set { config_source = value; }
+ }
+
+ public bool ForceUpdate {
+ get { return force_update; }
+ set { force_update = value; }
+ }
+
+ public bool InheritInChildApplications {
+ get { return inherit_on_child_apps; }
+ set { inherit_on_child_apps = value; }
+ }
+
+ public bool IsDeclared {
+ get { return is_declared; }
+ }
+
+ public bool IsLocked {
+ get { return is_locked; }
+ }
+
+ public bool IsProtected {
+ get { return is_protected; }
+ }
+
+ public string Name {
+ get { return name; }
+ }
+
+ public string Path {
+ get { return path; }
+ }
+
+ public ProtectedConfigurationProvider ProtectionProvider {
+ get { return protected_provider; }
+ }
+
+ public bool RestartOnExternalChanges {
+ get { return restart_on_external_changes; }
+ set { restart_on_external_changes = value; }
+ }
+
+ public string TypeName {
+ get { return type_name; }
+ set { type_name = value; }
+ }
+
+ public ConfigurationSection GetParentSection ()
+ {
+ return parent;
+ }
+
+ public XmlNode GetRawXml ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected internal virtual object GetRuntimeObject ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected internal override bool IsModified ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void ProtectSection (string provider)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void RequireDeclaration ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected internal override void ResetModified ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void RevertToParent ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void UnProtectSection ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void UpdateRawXml (string xml)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
+#endif
--- /dev/null
+//
+// System.Configuration.ConfigurationSectionCollection.cs
+//
+// Authors:
+// Duncan Mak (duncan@ximian.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.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+using System;
+using System.Collections;
+using System.Collections.Specialized;
+
+namespace System.Configuration {
+
+ public sealed class ConfigurationSectionCollection : NameObjectCollectionBase
+ {
+
+ }
+}
+#endif
--- /dev/null
+//
+// System.Configuration.ConfigurationSection.cs
+//
+// Authors:
+// Duncan Mak (duncan@ximian.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.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+using System;
+
+namespace System.Configuration {
+
+ public class ConfigurationSectionGroup
+ {
+ bool require_declaration;
+ string name, path, type_name;
+
+ public ConfigurationSectionGroup ()
+ {
+ }
+
+ public void RequireDeclaration (bool require)
+ {
+ this.require_declaration = require;
+ }
+
+ public bool IsDeclared {
+ get { return require_declaration; }
+ }
+
+ public string Name {
+ get { return path; }
+ }
+
+ public string Path {
+ get { return path; }
+ }
+
+ public ConfigurationSectionGroupCollection SectionGroups {
+ get { throw new NotImplementedException (); }
+ }
+
+ public ConfigurationSectionCollection Sections {
+ get { throw new NotImplementedException (); }
+ }
+
+ public string TypeName {
+ get { return type_name;}
+ }
+ }
+}
+#endif
--- /dev/null
+//
+// System.Configuration.ConfigurationSectionGroupCollection.cs
+//
+// Authors:
+// Duncan Mak (duncan@ximian.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.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+using System;
+using System.Collections;
+using System.Collections.Specialized;
+
+namespace System.Configuration {
+
+ public sealed class ConfigurationSectionGroupCollection : NameObjectCollectionBase
+ {
+ public ICollection AllKeys {
+ get { return BaseGetAllKeys (); }
+ }
+
+ public override int Count {
+ get { throw new NotImplementedException (); }
+ }
+
+ public ConfigurationSectionGroup this [int index] {
+ get { throw new NotImplementedException (); }
+ }
+
+ public ConfigurationSectionGroup this [string index] {
+ get { throw new NotImplementedException (); }
+ }
+
+ public override NameObjectCollectionBase.KeysCollection Keys {
+ get { throw new NotImplementedException (); }
+ }
+
+ public void Add (string name, ConfigurationSectionGroup section_group)
+ {
+ BaseAdd (name, section_group);
+ }
+
+ public void Clear ()
+ {
+ BaseClear ();
+ }
+
+ public void CopyTo (ConfigurationSectionGroup [] array, int index)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public ConfigurationSectionGroup Get (int index)
+ {
+ return BaseGet (index) as ConfigurationSectionGroup;
+ }
+
+ public ConfigurationSectionGroup Get (string index)
+ {
+ return BaseGet (index) as ConfigurationSectionGroup;
+ }
+
+ public override IEnumerator GetEnumerator ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ public string GetKey (string index)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Remove (string index)
+ {
+ BaseRemove (index);
+ }
+
+ public void RemoveAt (int index)
+ {
+ BaseRemoveAt (index);
+ }
+ }
+}
+#endif
--- /dev/null
+//
+// System.Configuration.ConnectionStringsSection.cs
+//
+// Authors:
+// Duncan Mak (duncan@ximian.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.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+using System;
+
+namespace System.Configuration {
+
+ public sealed class ConnectionStringsSection : ConfigurationSection
+ {
+ public ConnectionStringsSection ()
+ {
+ }
+
+ protected internal override object GetRuntimeObject ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected internal override void InitializeDefault ()
+ {
+ throw new NotImplementedException ();
+ }
+
+// [MonoTODO ("Implement ConnectionStringsSettingsCollection")]
+// public ConnectionStringsSettingsCollection ConnectionStrings {
+// get { throw new NotImplementedException (); }
+// }
+
+ protected internal override ConfigurationPropertyCollection Properties {
+ get { throw new NotImplementedException (); }
+ }
+ }
+}
+#endif
System.ComponentModel.Design.Serialization/IDesignerLoaderService.cs
System.ComponentModel.Design.Serialization/InstanceDescriptor.cs
System.Configuration/AppSettingsReader.cs
+System.Configuration/AppSettingsSection.cs
System.Configuration/ConfigHelper.cs
+System.Configuration/ConfigXmlDocument.cs
+System.Configuration/Configuration.cs
System.Configuration/ConfigurationAllowDefinition.cs
System.Configuration/ConfigurationElement.cs
System.Configuration/ConfigurationException.cs
+System.Configuration/ConfigurationLocation.cs
+System.Configuration/ConfigurationLocationCollection.cs
System.Configuration/ConfigurationProperty.cs
System.Configuration/ConfigurationPropertyAttribute.cs
System.Configuration/ConfigurationPropertyCollection.cs
System.Configuration/ConfigurationPropertyFlags.cs
+System.Configuration/ConfigurationSection.cs
+System.Configuration/ConfigurationSectionCollection.cs
+System.Configuration/ConfigurationSectionGroup.cs
+System.Configuration/ConfigurationSectionGroupCollection.cs
System.Configuration/ConfigurationSettings.cs
System.Configuration/ConfigurationUpdateMode.cs
System.Configuration/ConfigurationUserLevel.cs
System.Configuration/ConfigurationValidationAttribute.cs
-System.Configuration/ConfigXmlDocument.cs
+System.Configuration/ConnectionStringsSection.cs
System.Configuration/DictionarySectionHandler.cs
+System.Configuration/IConfigXmlNode.cs
System.Configuration/IConfigurationSectionHandler.cs
System.Configuration/IConfigurationSystem.cs
-System.Configuration/IConfigXmlNode.cs
System.Configuration/IgnoreSectionHandler.cs
System.Configuration/NameValueFileSectionHandler.cs
System.Configuration/NameValueSectionHandler.cs