aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Instantiator.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-09 20:44:48 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-09 20:48:02 +0100
commitdce9ecfbac5b78476550bfe1fc76a8bdbb3d930b (patch)
tree73dc4aad6b32a4f7b01b8be3a51b79d405314876 /src/Instantiator.cs
parent49c7adb31d17bfc9f5349f8c8343a4ca6318d3aa (diff)
made SeletedItem of templatedGroup writable
Diffstat (limited to 'src/Instantiator.cs')
-rw-r--r--src/Instantiator.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Instantiator.cs b/src/Instantiator.cs
index 297337ed..b3f070e7 100644
--- a/src/Instantiator.cs
+++ b/src/Instantiator.cs
@@ -890,6 +890,9 @@ namespace Crow.IML
CompilerServices.emitConvert (il, piSource.PropertyType);
+ if (!piSource.CanWrite)
+ throw new Exception ("Source member of bindind is read only:" + piSource.ToString());
+
il.Emit (OpCodes.Callvirt, piSource.GetSetMethod ());
il.MarkLabel (endMethod);