diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-12 15:47:10 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-12 15:47:10 +0300 |
| commit | 8a59643571080bfff715f0b0e4bb03e2dee4961a (patch) | |
| tree | 4a5301065eaa0d62dfc74cf2aa29c525d359dbca /Software/Visual_Studio/Tango.Core/DI | |
| parent | aa42a768788aa4c90600b45d29f6ad8d78d9334d (diff) | |
| download | Tango-8a59643571080bfff715f0b0e4bb03e2dee4961a.tar.gz Tango-8a59643571080bfff715f0b0e4bb03e2dee4961a.zip | |
Starting splitting PPC to modules.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/DI')
| -rw-r--r-- | Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs b/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs index 4a344ebc9..c10c550cb 100644 --- a/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs +++ b/Software/Visual_Studio/Tango.Core/DI/TangoIOC.cs @@ -11,7 +11,7 @@ namespace Tango.Core.DI /// Represents the default Tango IOC container. /// </summary> /// <seealso cref="Tango.Core.DI.ITangoIOC" /> - public class TangoIOC : ITangoIOC + public class TangoIOC : ExtendedObject, ITangoIOC { private class RegisteredType { @@ -179,7 +179,14 @@ namespace Tango.Core.DI } else { - throw new InvalidOperationException(String.Format("Requested type '{0}' could not be found.", type.Name)); + if (!DesignMode) + { + throw new InvalidOperationException(String.Format("Requested type '{0}' could not be found.", type.Name)); + } + else + { + return null; + } } } |
