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
commit673466d57ed603eb5c336ab9c09c7d8a74ec3b02 (patch)
treeb774fc1bc15c3606ab42fbe948850eb7cbf315e6 /src/Instantiator.cs
parentd783669223da5bfe8caa1b95c0ff6e1c5046e09e (diff)
made SeletedItem of templatedGroup writable0.6.0
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);