コード例 #1
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 protected BaseBuiltInCalculatingOperator(string symbol, int priority, OperatorIndependency independency, string description) : base(symbol, priority, independency)
 {
     if (description == null)
     {
         var attribute = Attribute.GetCustomAttribute(GetType(), typeof(DescriptionAttribute)) as DescriptionAttribute;
         Description = (attribute != null) ? attribute.Description : "";
     }
     else
     {
         Description = description;
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 protected BaseBuiltInCalculatingOperator(string symbol, int priority, OperatorIndependency independency, string description)
     : base(symbol, priority, independency)
 {
     if (description == null)
     {
         var attribute = Attribute.GetCustomAttribute(GetType(), typeof(DescriptionAttribute)) as DescriptionAttribute;
         Description = (attribute != null) ? attribute.Description : "";
     }
     else
     {
         Description = description;
     }
 }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of this class.
        /// </summary>
        /// <param name="symbol">The symbol of this operator.</param>
        /// <param name="independency">The independency of this operator.</param>
        /// <param name="description">The description of this operator.</param>
        protected BaseBuiltInComparativeOperator(string symbol, OperatorIndependency independency, string description) : base(symbol, independency)
        {
            _builder = new OperandBuilder();

            if (description == null)
            {
                var attribute = Attribute.GetCustomAttribute(GetType(), typeof(DescriptionAttribute)) as DescriptionAttribute;
                Description = (attribute != null) ? attribute.Description : "";
            }
            else
            {
                Description = description;
            }
        }
コード例 #4
0
ファイル: Add.cs プロジェクト: kennedykinyanjui/Projects
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public Add(string symbol, int priority, OperatorIndependency independency, string description)
     : base(symbol, priority, independency, description)
 {
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected ComparativeOperator(string symbol, OperatorIndependency independency)
     : base(symbol, independency)
 {
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected CalculatingOperator(string symbol, int priority, OperatorIndependency independency)
     : base(symbol, independency)
 {
     Priority = priority;
 }
コード例 #7
0
ファイル: Equal.cs プロジェクト: unickq/AutomateThePlanet
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="ignoreCase">Whether or not this operator should ignore case.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public Equal(string symbol, bool ignoreCase, OperatorIndependency independency, string description)
     : base(symbol, independency, description)
 {
     this.ignoreCase = ignoreCase;
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="ignoreCase">Whether or not this operator should ignore case.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public SuffixSearch(string symbol, bool ignoreCase, OperatorIndependency independency, string description) : base(symbol, independency, description)
 {
     _ignoreCase = ignoreCase;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public GreaterThanOrEqual(string symbol, OperatorIndependency independency, string description) : base(symbol, independency, description)
 {
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this class.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected FidelyOperator(string symbol, OperatorIndependency independency)
 {
     Symbol       = symbol;
     Independency = independency;
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public LessThan(string symbol, OperatorIndependency independency, string description) : base(symbol, independency, description)
 {
 }
コード例 #12
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this class.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected FidelyOperator(string symbol, OperatorIndependency independency)
 {
     Symbol = symbol;
     Independency = independency;
 }
コード例 #13
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected CalculatingOperator(string symbol, int priority, OperatorIndependency independency)
     : base(symbol, independency)
 {
     Priority = priority;
 }
コード例 #14
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 protected ComparativeOperator(string symbol, OperatorIndependency independency)
     : base(symbol, independency)
 {
 }
コード例 #15
0
 public NullCalculator(string symbol, int priority, OperatorIndependency independency = OperatorIndependency.Strong)
     : base(symbol, priority, independency)
 {
 }
コード例 #16
0
 public NullComparer(string symbol, OperatorIndependency independency = OperatorIndependency.Strong)
     : base(symbol, independency)
 {
 }
コード例 #17
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="priority">The priority of this operator.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public Multiply(string symbol, int priority, OperatorIndependency independency, string description)
     : base(symbol, priority, independency, description)
 {
 }
コード例 #18
0
 public NullComparer(string symbol, OperatorIndependency independency = OperatorIndependency.Strong)
     : base(symbol, independency)
 {
 }
コード例 #19
0
 /// <summary>
 /// Initializes a new instance of this class.
 /// </summary>
 /// <param name="symbol">The symbol of this operator.</param>
 /// <param name="ignoreCase">Whether or not this operator should ignore case.</param>
 /// <param name="independency">The independency of this operator.</param>
 /// <param name="description">The description of this operator.</param>
 public NotPartialMatch(string symbol, bool ignoreCase, OperatorIndependency independency, string description) : base(symbol, independency, description)
 {
     _ignoreCase = ignoreCase;
 }
コード例 #20
0
 public NullCalculator(string symbol, int priority, OperatorIndependency independency = OperatorIndependency.Strong)
     : base(symbol, priority, independency)
 {
 }