Skip to content

Commit 5a92bc4

Browse files
author
Kapil Borle
committed
Make configurrule method virtual
1 parent 210d904 commit 5a92bc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Engine/Generic/ConfigurableScriptRule.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public abstract class ConfigurableScriptRule : IScriptRule
1515
{
1616
public bool IsRuleConfigured { get; protected set; } = false;
1717

18-
public void ConfigureRule()
18+
public virtual void ConfigureRule()
1919
{
2020
var arguments = Helper.Instance.GetRuleArguments(this.GetName());
2121
try
@@ -29,7 +29,7 @@ public void ConfigureRule()
2929
var obj = arguments[property.Name];
3030
property.SetValue(
3131
this,
32-
System.Convert.ChangeType(obj, Type.GetTypeCode(type)));
32+
System.Convert.ChangeType(obj, type));
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)