Skip to content

Instantly share code, notes, and snippets.

@jonpryor
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonpryor/97a0f6b59c59ac6b6001 to your computer and use it in GitHub Desktop.
Save jonpryor/97a0f6b59c59ac6b6001 to your computer and use it in GitHub Desktop.
diff --git a/src/Catel.Core/Catel.Core.NET40/IoC/TypeFactory.cs b/src/Catel.Core/Catel.Core.NET40/IoC/TypeFactory.cs
index 3aa8571..df1f46f 100644
--- a/src/Catel.Core/Catel.Core.NET40/IoC/TypeFactory.cs
+++ b/src/Catel.Core/Catel.Core.NET40/IoC/TypeFactory.cs
@@ -625,6 +625,12 @@ namespace Catel.IoC
var finalParametersArray = finalParameters.ToArray();
Log.Debug("Calling constructor.Invoke with the right parameters");
+ Log.Debug("constructor.DeclaringType={0}; constructor.Parameters={1}",
+ constructor.DeclaringType.FullName,
+ string.Join (", ", constructor.GetParameters().Select(p => p.ParameterType)));
+ Log.Debug("constructor arguments {0} {1}",
+ finalParametersArray.Length,
+ string.Join (", ", finalParametersArray.Select(a => a.ToString())));
var instance = constructor.Invoke(finalParametersArray);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment