File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,6 +165,30 @@ public void Initialize()
165165 }
166166 }
167167
168+ public Dictionary < string , Dictionary < string , object > > GetRuleArguments ( )
169+ {
170+ return ruleArguments ;
171+ }
172+
173+ public Dictionary < string , object > GetRuleArguments ( string ruleName )
174+ {
175+ if ( ruleArguments . ContainsKey ( ruleName ) )
176+ {
177+ return ruleArguments [ ruleName ] ;
178+ }
179+ return null ;
180+ }
181+
182+ public void SetRuleArguments ( Dictionary < string , Dictionary < string , object > > ruleArgs )
183+ {
184+ if ( ruleArgs . Comparer != StringComparer . OrdinalIgnoreCase )
185+ {
186+ throw new ArgumentException (
187+ "Input dictionary should have OrdinalIgnoreCase comparer." ,
188+ "ruleArgs" ) ;
189+ }
190+ ruleArguments = ruleArgs ;
191+ }
168192 /// <summary>
169193 /// Returns all the rule arguments
170194 /// </summary>
You can’t perform that action at this time.
0 commit comments