aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core/DI
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-12 04:37:11 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-12 04:37:11 +0300
commite1802508c00e0cede200d3914c5b6e4587cb6963 (patch)
treeec6d74dc182ec77cf4e94c58cdcb983d12a921bf /Software/Visual_Studio/Tango.Core/DI
parent2c68ed841941d4e1b27815a52ca841d6abc4e806 (diff)
downloadTango-e1802508c00e0cede200d3914c5b6e4587cb6963.tar.gz
Tango-e1802508c00e0cede200d3914c5b6e4587cb6963.zip
Working on FSE TUP.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/DI')
-rw-r--r--Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs b/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs
index cb27351f8..ef9ed4959 100644
--- a/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs
+++ b/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs
@@ -275,6 +275,11 @@ namespace Tango.Core.DI
/// <param name="instance">The instance.</param>
protected virtual void RegisterInternal(Type interfaceType, Type implementationType, Object instance)
{
+ if (DesignMode)
+ {
+ return;
+ }
+
if (!interfaceType.IsAssignableFrom(implementationType))
{
throw new InvalidOperationException(String.Format("Interface type '{0}' cannot be assigned from implementation type '{1}'.", interfaceType.Name, implementationType.Name));