public static bool TryGetConstructor(this IHasConstructors hasConstructors, out ICommonConstructor foundCommonConstructor)
 {
     return((foundCommonConstructor = hasConstructors.GetConstructor()) != null);
 }
 public static ICommonConstructor GetConstructor(this IHasConstructors hasConstructors, bool throwExceptionIfNotFound = false)
 {
     return(hasConstructors.GetConstructor(Type.EmptyTypes, throwExceptionIfNotFound));
 }
 public static ICommonConstructor GetConstructor(this IHasConstructors hasConstructors, IHasType[] constructorParameterHasTypes, bool throwExceptionIfNotFound = false)
 {
     return(hasConstructors.GetConstructor(constructorParameterHasTypes.Select(type => type.Type).ToArray(), throwExceptionIfNotFound));
 }
 public static bool TryGetConstructor(this IHasConstructors hasConstructors, string[] constructorParameterTypeFullNames, out ICommonConstructor foundCommonConstructor)
 {
     return((foundCommonConstructor = hasConstructors.GetConstructor(constructorParameterTypeFullNames)) != null);
 }