Author: kostat
Date: 2007-05-29 10:23:48 -0400 (Tue, 29 May 2007)
New Revision: 78124
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/AppSettingsSection.cs
trunk/mcs/class/System.Configuration/System.Configuration/Configuration.cs
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationCollectionAttribute.cs
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationLockCollection.cs
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionGroup.cs
trunk/mcs/class/System.Configuration/System.Configuration/ContextInformation.cs
trunk/mcs/class/System.Configuration/System.Configuration/DpapiProtectedConfigurationProvider.cs
trunk/mcs/class/System.Configuration/System.Configuration/InternalConfigurationHost.cs
Log:
refactoring: fix documentation attributes
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/AppSettingsSection.cs
===================================================================
---
trunk/mcs/class/System.Configuration/System.Configuration/AppSettingsSection.cs
2007-05-29 14:23:00 UTC (rev 78123)
+++
trunk/mcs/class/System.Configuration/System.Configuration/AppSettingsSection.cs
2007-05-29 14:23:48 UTC (rev 78124)
@@ -64,7 +64,7 @@
return Settings.IsModified ();
}
- [MonoTODO ("file path? do we use a System.Configuration api
for opening it? do we keep it open? do we open it writable?")]
+ [MonoInternalNote ("file path? do we use a
System.Configuration api for opening it? do we keep it open? do we open it
writable?")]
protected internal override void DeserializeElement (XmlReader
reader, bool serializeCollectionKey)
{
/* need to do this so we pick up the File attribute */
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/Configuration.cs
===================================================================
--- trunk/mcs/class/System.Configuration/System.Configuration/Configuration.cs
2007-05-29 14:23:00 UTC (rev 78123)
+++ trunk/mcs/class/System.Configuration/System.Configuration/Configuration.cs
2007-05-29 14:23:48 UTC (rev 78124)
@@ -380,9 +380,9 @@
public void SaveAs (string filename, ConfigurationSaveMode mode)
{
SaveAs (filename, mode, false);
- }
-
- [MonoTODO ("Detect if file has changed")]
+ }
+
+ [MonoInternalNote ("Detect if file has changed")]
public void SaveAs (string filename, ConfigurationSaveMode
mode, bool forceUpdateAll)
{
Save (new FileStream (filename, FileMode.OpenOrCreate,
FileAccess.Write), mode, forceUpdateAll);
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationCollectionAttribute.cs
===================================================================
---
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationCollectionAttribute.cs
2007-05-29 14:23:00 UTC (rev 78123)
+++
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationCollectionAttribute.cs
2007-05-29 14:23:48 UTC (rev 78124)
@@ -65,7 +65,7 @@
set { collectionType = value; }
}
- [MonoTODO ("Do something with this in
ConfigurationElementCollection")]
+ [MonoInternalNote ("Do something with this in
ConfigurationElementCollection")]
public Type ItemType {
get { return itemType; }
}
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationLockCollection.cs
===================================================================
---
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationLockCollection.cs
2007-05-29 14:23:00 UTC (rev 78123)
+++
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationLockCollection.cs
2007-05-29 14:23:48 UTC (rev 78124)
@@ -122,7 +122,7 @@
return names.GetEnumerator ();
}
- [MonoTODO ("we can't possibly *always* return false here...")]
+ [MonoInternalNote ("we can't possibly *always* return false
here...")]
public bool IsReadOnly (string name)
{
for (int i = 0; i < names.Count; i ++) {
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs
===================================================================
---
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs
2007-05-29 14:23:00 UTC (rev 78123)
+++
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationManager.cs
2007-05-29 14:23:48 UTC (rev 78124)
@@ -134,7 +134,7 @@
return OpenExeConfigurationInternal
(ConfigurationUserLevel.None, Assembly.GetCallingAssembly (), exePath);
}
- [MonoTODO ("userLevel")]
+ [MonoLimitation("ConfigurationUserLevel parameter is not
supported.")]
public static Configuration OpenMappedExeConfiguration
(ExeConfigurationFileMap fileMap, ConfigurationUserLevel userLevel)
{
return ConfigurationFactory.Create
(typeof(ExeConfigurationHost), fileMap);
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs
===================================================================
---
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs
2007-05-29 14:23:00 UTC (rev 78123)
+++
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs
2007-05-29 14:23:48 UTC (rev 78124)
@@ -96,7 +96,7 @@
return elem;
}
- [MonoTODO ("find the proper location for the decryption stuff")]
+ [MonoInternalNote ("find the proper location for the decryption
stuff")]
protected internal virtual void DeserializeSection (XmlReader
reader)
{
reader.MoveToContent ();
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionGroup.cs
===================================================================
---
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionGroup.cs
2007-05-29 14:23:00 UTC (rev 78123)
+++
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionGroup.cs
2007-05-29 14:23:48 UTC (rev 78124)
@@ -82,7 +82,7 @@
get { return name; }
}
- [MonoTODO ("Check if this is correct")]
+ [MonoInternalNote ("Check if this is correct")]
public string SectionGroupName {
get { return group.XPath; }
}
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/ContextInformation.cs
===================================================================
---
trunk/mcs/class/System.Configuration/System.Configuration/ContextInformation.cs
2007-05-29 14:23:00 UTC (rev 78123)
+++
trunk/mcs/class/System.Configuration/System.Configuration/ContextInformation.cs
2007-05-29 14:23:48 UTC (rev 78124)
@@ -52,7 +52,7 @@
get { return ctx; }
}
- [MonoTODO ("should this use HostingContext instead?")]
+ [MonoInternalNote ("should this use HostingContext instead?")]
public bool IsMachineLevel {
get {
return config.ConfigPath == "machine";
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/DpapiProtectedConfigurationProvider.cs
===================================================================
---
trunk/mcs/class/System.Configuration/System.Configuration/DpapiProtectedConfigurationProvider.cs
2007-05-29 14:23:00 UTC (rev 78123)
+++
trunk/mcs/class/System.Configuration/System.Configuration/DpapiProtectedConfigurationProvider.cs
2007-05-29 14:23:48 UTC (rev 78124)
@@ -34,22 +34,20 @@
{
public sealed class DpapiProtectedConfigurationProvider:
ProtectedConfigurationProvider
{
- bool useMachineProtection;
-
- public override XmlNode Decrypt (XmlNode encrypted_node)
- {
- throw new NotSupportedException (
-@"DpapiProtectedConfigurationProvider depends on the Microsoft Data
+ bool useMachineProtection;
+ const string NotSupportedReason =
@"DpapiProtectedConfigurationProvider depends on the Microsoft Data
Protection API, and is unimplemented in Mono. For portability's sake,
-it is suggested that you use the RsaProtectedConfigurationProvider.");
- }
-
+it is suggested that you use the RsaProtectedConfigurationProvider.";
+ [MonoNotSupported (NotSupportedReason)]
+ public override XmlNode Decrypt (XmlNode encrypted_node)
+ {
+ throw new NotSupportedException (NotSupportedReason);
+ }
+
+ [MonoNotSupported (NotSupportedReason)]
public override XmlNode Encrypt (XmlNode node)
- {
- throw new NotSupportedException (
-@"DpapiProtectedConfigurationProvider depends on the Microsoft Data
-Protection API, and is unimplemented in Mono. For portability's sake,
-it is suggested that you use the RsaProtectedConfigurationProvider.");
+ {
+ throw new NotSupportedException (NotSupportedReason);
}
[MonoTODO]
Modified:
trunk/mcs/class/System.Configuration/System.Configuration/InternalConfigurationHost.cs
===================================================================
---
trunk/mcs/class/System.Configuration/System.Configuration/InternalConfigurationHost.cs
2007-05-29 14:23:00 UTC (rev 78123)
+++
trunk/mcs/class/System.Configuration/System.Configuration/InternalConfigurationHost.cs
2007-05-29 14:23:48 UTC (rev 78124)
@@ -88,8 +88,8 @@
public abstract string GetStreamName (string configPath);
public abstract void Init (IInternalConfigRoot root, params
object[] hostInitParams);
public abstract void InitForConfiguration (ref string
locationSubPath, out string configPath, out string locationConfigPath,
IInternalConfigRoot root, params object[] hostInitConfigurationParams);
-
- [MonoTODO ("remote config")]
+
+ [MonoNotSupported ("mono does not support remote
configuration")]
public virtual string GetStreamNameForConfigSource (string
streamName, string configSource)
{
throw new NotSupportedException ("mono does not support
remote configuration");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches