77namespace ToolGood . Algorithm
88{
99 /// <summary>
10- /// 多条件缓存
10+ /// 条件缓存
1111 /// </summary>
12- public class MultiConditionCache
12+ public class ConditionCache
1313 {
14- private Dictionary < string , List < ConditionCache > > conditionCaches = new Dictionary < string , List < ConditionCache > > ( ) ;
14+ private Dictionary < string , List < Internals . ConditionCache > > conditionCaches = new Dictionary < string , List < Internals . ConditionCache > > ( ) ;
1515 /// <summary>
1616 /// 最后一个错误
1717 /// </summary>
@@ -27,7 +27,7 @@ public class MultiConditionCache
2727 /// <returns></returns>
2828 public bool AddFormula ( string categoryName , string condition , string formula , string remark = null )
2929 {
30- ConditionCache conditionCache = new ConditionCache ( ) {
30+ Internals . ConditionCache conditionCache = new Internals . ConditionCache ( ) {
3131 CategoryName = categoryName ,
3232 Remark = remark ,
3333 ConditionString = condition ,
@@ -46,9 +46,9 @@ public bool AddFormula(string categoryName, string condition, string formula, st
4646 }
4747 conditionCache . Formula = formulaProg ;
4848
49- List < ConditionCache > list ;
49+ List < Internals . ConditionCache > list ;
5050 if ( conditionCaches . TryGetValue ( categoryName , out list ) == false ) {
51- list = new List < ConditionCache > ( ) ;
51+ list = new List < Internals . ConditionCache > ( ) ;
5252 conditionCaches [ categoryName ] = list ;
5353 }
5454
@@ -66,7 +66,7 @@ public bool AddFormula(string categoryName, string condition, string formula, st
6666 /// <returns></returns>
6767 public bool AddCondition ( string categoryName , string condition , string remark )
6868 {
69- ConditionCache conditionCache = new ConditionCache ( ) {
69+ Internals . ConditionCache conditionCache = new Internals . ConditionCache ( ) {
7070 CategoryName = categoryName ,
7171 Remark = remark ,
7272 ConditionString = condition ,
@@ -78,9 +78,9 @@ public bool AddCondition(string categoryName, string condition, string remark)
7878 }
7979 conditionCache . Condition = conditionProg ;
8080 }
81- List < ConditionCache > list ;
81+ List < Internals . ConditionCache > list ;
8282 if ( conditionCaches . TryGetValue ( categoryName , out list ) == false ) {
83- list = new List < ConditionCache > ( ) ;
83+ list = new List < Internals . ConditionCache > ( ) ;
8484 conditionCaches [ categoryName ] = list ;
8585 }
8686
@@ -118,11 +118,11 @@ private ProgContext Parse(string exp)
118118 return null ;
119119 }
120120
121- internal List < ConditionCache > GetConditionCaches ( string name )
121+ internal List < Internals . ConditionCache > GetConditionCaches ( string name )
122122 {
123- List < ConditionCache > result ;
123+ List < Internals . ConditionCache > result ;
124124 if ( conditionCaches . TryGetValue ( name , out result ) == false ) {
125- result = new List < ConditionCache > ( ) ;
125+ result = new List < Internals . ConditionCache > ( ) ;
126126 }
127127 return result ;
128128 }
0 commit comments