diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-03 18:19:30 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-03 18:19:30 +0100 |
| commit | 9e09e0561baf7a898c308180d142cecea9e56b8f (patch) | |
| tree | 0512e610a9297397128e64760a2db0076d8047e0 /src/GraphicObjects/GraphicObject.cs | |
| parent | 46560c8595bc6a36b51493214cbbff89c0694ef5 (diff) | |
Cast extention method for Type, used in binding resolution
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 7fd0e1ca..8bbf67b0 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -986,7 +986,12 @@ namespace Crow }else targetValue = targetValue.ToString (); } - b.Source.Property.GetSetMethod ().Invoke (this, new object[] { targetValue }); + if (targetValue != null) + b.Source.Property.GetSetMethod ().Invoke + (this, new object[] { b.Source.Property.PropertyType.Cast(targetValue)}); + else + b.Source.Property.GetSetMethod ().Invoke + (this, new object[] { targetValue }); #endregion //if no dyn update, skip jump table |