public static bool TryGetConstructor(this IHasConstructors hasConstructors, out ICommonConstructor foundCommonConstructor)
 {
     return((foundCommonConstructor = hasConstructors.GetConstructor()) != null);
 }
 public static bool NotContainsReflectionAttribute(this ICommonConstructor commonConstructor, IHasType attributeHasType)
 {
     return(!commonConstructor.ContainsReflectionAttribute(attributeHasType));
 }
 public static bool TryGetConstructor(this IHasConstructors hasConstructors, string[] constructorParameterTypeFullNames, out ICommonConstructor foundCommonConstructor)
 {
     return((foundCommonConstructor = hasConstructors.GetConstructor(constructorParameterTypeFullNames)) != null);
 }
 public static bool ContainsReflectionAttribute(this ICommonConstructor commonConstructor, Type attributeType)
 {
     return(commonConstructor.Reflection.GetCustomAttributes(attributeType, false).Any());
 }
 public static bool NotContainsReflectionAttribute <TAttribute>(this ICommonConstructor commonConstructor) where TAttribute : Attribute
 {
     return(!commonConstructor.ContainsReflectionAttribute <TAttribute>());
 }
 public static bool ContainsReflectionAttribute <TAttribute>(this ICommonConstructor commonConstructor) where TAttribute : Attribute
 {
     return(commonConstructor.ContainsReflectionAttribute(typeof(TAttribute)));
 }
 public static Attribute GetReflectionAttribute(this ICommonConstructor commonConstructor, Type attributeType, bool throwExceptionIfNotFound = false)
 {
     return((Attribute)commonConstructor.Reflection.GetCustomAttributes(attributeType, false).SingleOrDefault(throwExceptionIfNotFound, attributeType.FullName));
 }
 public static TAttribute GetReflectionAttribute <TAttribute>(this ICommonConstructor commonConstructor, bool throwExceptionIfNotFound = false) where TAttribute : Attribute
 {
     return((TAttribute)commonConstructor.GetReflectionAttribute(typeof(TAttribute), throwExceptionIfNotFound));
 }
 public static bool TryGetReflectionAttribute <TAttribute>(this ICommonConstructor commonConstructor, out TAttribute foundAttribute) where TAttribute : Attribute
 {
     return((foundAttribute = commonConstructor.GetReflectionAttribute <TAttribute>()) != null);
 }
 public static IEnumerable <TAttribute> GetReflectionAttributes <TAttribute>(this ICommonConstructor commonConstructor) where TAttribute : Attribute
 {
     return(commonConstructor.Reflection.GetCustomAttributes <TAttribute>(false));
 }