Kaynağa Gözat

Obsoleted old condition, formula and aggregate types

Kenric Nugteren 10 ay önce
ebeveyn
işleme
d7ab745ffd
1 değiştirilmiş dosya ile 27 ekleme ve 1 silme
  1. 27 1
      InABox.Core/Aggregate.cs

+ 27 - 1
InABox.Core/Aggregate.cs

@@ -646,6 +646,7 @@ namespace InABox.Core
         }
     }
 
+    [Obsolete]
     public class AggregateAttribute : Attribute
     {
         public AggregateAttribute(Type calculator)
@@ -773,12 +774,35 @@ namespace InABox.Core
     public enum FormulaOperator
     {
         None,
+        /// <summary>
+        /// Add the values together. If no values are provided, the result is 0
+        /// </summary>
         Add,
+        /// <summary>
+        /// Subtract all values from the first value. If no values are
+        /// provided, the result is 0; if only one value is provided, the
+        /// result is the negation of the input.
+        /// </summary>
         Subtract,
+        /// <summary>
+        /// Multiply the values together. If no values are provided, the result is 1
+        /// </summary>
         Multiply,
+        /// <summary>
+        /// Divide all values from the first value. If no values are
+        /// provided, the result is 1; if only one value is provided, the
+        /// result is the reciprocal of the input.
+        /// </summary>
         Divide,
+        /// <summary>
+        /// Take the minimum of all values.
+        /// </summary>
         Minumum,
+        /// <summary>
+        /// Take the maximum of all values.
+        /// </summary>
         Maximum,
+        [Obsolete]
         Constant
     }
 
@@ -797,7 +821,8 @@ namespace InABox.Core
         FormulaOperator Operator { get; }
         FormulaType Type { get; }
     }
-    
+
+    [Obsolete]
     public class FormulaAttribute : Attribute, IFormula
     {
         public FormulaAttribute(Type calculator)
@@ -923,6 +948,7 @@ namespace InABox.Core
         ConditionType Type { get; }
     }
 
+    [Obsolete]
     public class ConditionAttribute : Attribute
     {
         public ConditionAttribute(Type calculator)