lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [4/8] lucenenet git commit: Lucene.Net.Expressions: Changed Abs function to be a user property setting (like the other functions)
Date Thu, 13 Apr 2017 00:24:29 GMT
Lucene.Net.Expressions: Changed Abs function to be a user property setting (like the other
functions)


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/7c16e678
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/7c16e678
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/7c16e678

Branch: refs/heads/api-work
Commit: 7c16e67809dcc1a18b7019497bcdb4bb3d9d0096
Parents: caded34
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Apr 13 02:56:53 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Apr 13 02:56:53 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Expressions/Properties/Settings.Designer.cs | 9 ++++++---
 src/Lucene.Net.Expressions/Properties/Settings.settings    | 2 +-
 src/Lucene.Net.Expressions/app.config                      | 9 +--------
 3 files changed, 8 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c16e678/src/Lucene.Net.Expressions/Properties/Settings.Designer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Expressions/Properties/Settings.Designer.cs b/src/Lucene.Net.Expressions/Properties/Settings.Designer.cs
index db95fb0..dad1f55 100644
--- a/src/Lucene.Net.Expressions/Properties/Settings.Designer.cs
+++ b/src/Lucene.Net.Expressions/Properties/Settings.Designer.cs
@@ -1,7 +1,7 @@
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     This code was generated by a tool.
-//     Runtime Version:4.0.30319.0
+//     Runtime Version:4.0.30319.42000
 //
 //     Changes to this file may cause incorrect behavior and will be lost if
 //     the code is regenerated.
@@ -12,7 +12,7 @@ namespace Lucene.Net.Expressions.Properties {
     
     
     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator",
"12.0.0.0")]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator",
"14.0.0.0")]
     internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
         
         private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new
Settings())));
@@ -23,13 +23,16 @@ namespace Lucene.Net.Expressions.Properties {
             }
         }
         
-        [global::System.Configuration.ApplicationScopedSettingAttribute()]
+        [global::System.Configuration.UserScopedSettingAttribute()]
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [global::System.Configuration.DefaultSettingValueAttribute("System.Math, Abs, 1")]
         public string abs {
             get {
                 return ((string)(this["abs"]));
             }
+            set {
+                this["abs"] = value;
+            }
         }
         
         [global::System.Configuration.UserScopedSettingAttribute()]

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c16e678/src/Lucene.Net.Expressions/Properties/Settings.settings
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Expressions/Properties/Settings.settings b/src/Lucene.Net.Expressions/Properties/Settings.settings
index 3fd130f..f282ea3 100644
--- a/src/Lucene.Net.Expressions/Properties/Settings.settings
+++ b/src/Lucene.Net.Expressions/Properties/Settings.settings
@@ -2,7 +2,7 @@
 <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"
GeneratedClassNamespace="Lucene.Net.Expressions.Properties" GeneratedClassName="Settings">
   <Profiles />
   <Settings>
-    <Setting Name="abs" Type="System.String" Scope="Application">
+    <Setting Name="abs" Type="System.String" Scope="User">
       <Value Profile="(Default)">System.Math, Abs, 1</Value>
     </Setting>
     <Setting Name="acos" Type="System.String" Scope="User">

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c16e678/src/Lucene.Net.Expressions/app.config
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Expressions/app.config b/src/Lucene.Net.Expressions/app.config
index 4dcad5c..f1482c4 100644
--- a/src/Lucene.Net.Expressions/app.config
+++ b/src/Lucene.Net.Expressions/app.config
@@ -1,22 +1,15 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <configuration>
     <configSections>
-        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup,
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
-            <section name="Lucene.Net.Expressions.Properties.Settings" type="System.Configuration.ClientSettingsSection,
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"
/>
-        </sectionGroup>
         <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup,
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
             <section name="Lucene.Net.Expressions.Properties.Settings" type="System.Configuration.ClientSettingsSection,
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser"
requirePermission="false" />
         </sectionGroup>
     </configSections>
-    <applicationSettings>
+    <userSettings>
         <Lucene.Net.Expressions.Properties.Settings>
             <setting name="abs" serializeAs="String">
                 <value>System.Math, Abs, 1</value>
             </setting>
-        </Lucene.Net.Expressions.Properties.Settings>
-    </applicationSettings>
-    <userSettings>
-        <Lucene.Net.Expressions.Properties.Settings>
             <setting name="acos" serializeAs="String">
                 <value>System.Math, Acos, 1</value>
             </setting>


Mime
View raw message