[Mono-bugs] [Bug 78430][Nor] Changed - ArgumentNullException in System.Configuration.ApplicationSettingsBase

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 17 12:23:53 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by n_sergiu2000 at yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78430

--- shadow/78430	2006-05-17 12:21:22.000000000 -0400
+++ shadow/78430.tmp.28848	2006-05-17 12:23:53.000000000 -0400
@@ -220,6 +220,87 @@
         /// </summary>
         [STAThread]
         static void Main() {
         }
     }
 }
+
+------- Additional Comments From n_sergiu2000 at yahoo.com  2006-05-17 12:23 -------
+namespace TMFM.Properties {
+
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+   
+[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator",
+"8.0.0.0")]
+    internal sealed class Settings {
+        
+        public Settings() {
+            // // To add event handlers for saving and changing
+settings, uncomment the lines below:
+            //
+            // this.SettingChanging += this.SettingChangingEventHandler;
+            //
+            // this.SettingsSaving += this.SettingsSavingEventHandler;
+            //
+        }
+        
+        private void SettingChangingEventHandler(object sender,
+System.Configuration.SettingChangingEventArgs e) {
+            // Add code to handle the SettingChangingEvent event here.
+        }
+        
+        private void SettingsSavingEventHandler(object sender,
+System.ComponentModel.CancelEventArgs e) {
+            // Add code to handle the SettingsSaving event here.
+        }
+
+        private static Settings defaultInstance =
+((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new
+Settings())));
+        
+        public static Settings Default {
+            get {
+                return defaultInstance;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.Configuration.DefaultSettingValueAttribute("0")]
+        public int DepthLevel {
+            get {
+                return ((int)(this["DepthLevel"]));
+            }
+            set {
+                this["DepthLevel"] = value;
+            }
+        }
+        
+        [global::System.Configuration.UserScopedSettingAttribute()]
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+       
+[global::System.Configuration.DefaultSettingValueAttribute("False")]
+        public bool ShowFreeSpace {
+            get {
+                return ((bool)(this["ShowFreeSpace"]));
+            }
+            set {
+                this["ShowFreeSpace"] = value;
+            }
+        }
+    }
+}
+
+namespace TMFM {
+
+    static class Program {
+	private Properties.Settings settings = Properties.Settings.Default;
+
+        /// <summary>
+        /// The main entry point for the application.
+        /// </summary>
+        [STAThread]
+        static void Main() {
+		Program p = new Program();
+        }
+    }
+}


More information about the mono-bugs mailing list