コード例 #1
0
 private void failIf(bool condition,
                     string message,
                     InjectionExceptionType type,
                     Type t,
                     object name)
 {
     failIf(condition, message, type, t, name, null);
 }
コード例 #2
0
ファイル: Injector.cs プロジェクト: Pikhota/CourseProject
 private void failIf(bool condition, string message, InjectionExceptionType type, Type t, object name, object target)
 {
     if (condition)
     {
         message += "\n\t\ttarget: " + target;
         message += "\n\t\ttype: " + t;
         message += "\n\t\tname: " + name;
         throw new InjectionException(message, type);
     }
 }
コード例 #3
0
ファイル: Injector.cs プロジェクト: Pikhota/CourseProject
 private void failIf(bool condition, string message, InjectionExceptionType type, Type t, object name, object target, PropertyInfo propertyInfo)
 {
     if (condition)
     {
         if (propertyInfo != null)
         {
             message += "\n\t\ttarget property: " + propertyInfo.Name;
         }
         failIf(true, message, type, t, name, target);
     }
 }
コード例 #4
0
 private void failIf(bool condition, string message, InjectionExceptionType type, Type t, object name, object target, IInjectionBinder binder)
 {
     if (condition)
     {
         message += "\n\ttarget: " + target;
         message += "\n\ttype: " + t;
         message += "\n\tname: " + name;
         if (binder != null)
         {
             message += "\n\tbinder: " + binder.GetBinderName();
         }
         throw new InjectionException(message, type);
     }
 }
コード例 #5
0
ファイル: Injector.cs プロジェクト: noodle/strangeioc
 private void failIf(bool condition, string message, InjectionExceptionType type, Type t, object name, object target)
 {
     if (condition)
     {
         message += "\n\t\ttarget: " + target;
         message += "\n\t\ttype: " + t;
         message += "\n\t\tname: " + name;
         throw new InjectionException(message, type);
     }
 }
コード例 #6
0
ファイル: Injector.cs プロジェクト: noodle/strangeioc
 private void failIf(bool condition, string message, InjectionExceptionType type, Type t, object name)
 {
     failIf(condition, message, type, t, name, null);
 }
コード例 #7
0
 /// Constructs an InjectionException with a message and InjectionExceptionType
 public InjectionException(string message, InjectionExceptionType exceptionType) : base(message)
 {
     type = exceptionType;
 }
コード例 #8
0
 /// Constructs an InjectionException with a message and InjectionExceptionType
 public InjectionException(string message, InjectionExceptionType exceptionType)
     : base(message)
 {
     type = exceptionType;
 }
コード例 #9
0
ファイル: Injector.cs プロジェクト: JiphuTzu/SimplifyIoC
 private void FailIf(bool condition, string message, InjectionExceptionType type)
 {
     FailIf(condition, message, type, null, null, null);
 }
コード例 #10
0
ファイル: Injector.cs プロジェクト: Niller/LastStand
		private void failIf(bool condition, string message, InjectionExceptionType type, Type t, object name, object target, PropertyInfo propertyInfo)
		{
			if (condition)
			{
				if (propertyInfo != null)
				{
					message += "\n\t\ttarget property: " + propertyInfo.Name;
				}
				failIf (true, message, type, t, name, target);
			}
		}
コード例 #11
0
 public InjectionException(InjectionExceptionType type) : base(type.ToString())
 {
 }
コード例 #12
0
 public InjectionException(InjectionExceptionType type, object data1, object data2) : base($"{type} [{data1}] [{data2}]")
 {
 }
コード例 #13
0
 public InjectionException(InjectionExceptionType type, object data) : base($"{type} [{data}]")
 {
 }