diff options
Diffstat (limited to 'CSharp/Ivy/IvyPPC')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs b/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs index beaf475..90c44ce 100644 --- a/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs +++ b/CSharp/Ivy/IvyPPC/IvyBindingAttribute.cs @@ -14,10 +14,10 @@ namespace IvyBus public string GetExpression(object obj)
{
if (obj == null) return string.Format(expression);
- string[] values = new string[args.Length];
+ object[] values = new object[args.Length];
for (int i = 0; i < args.Length; i++)
{
- values[i] = (string)obj.GetType().GetProperty(args[i]).GetValue(obj,null);
+ values[i] = obj.GetType().GetProperty(args[i]).GetValue(obj,null);
}
return string.Format(expression,values);
}
|