private static bool HasDoNotSelectAttribute(ConstructorInfo constructor)
		{
			return constructor.HasAttribute<DoNotSelectAttribute>();
		}
		protected virtual bool IsVisibleToContainer(ConstructorInfo constructor)
		{
			return constructor.HasAttribute<DoNotSelectAttribute>() == false;
		}
 /// <summary>
 /// Gets the score for the specified constructor.
 /// </summary>
 /// <param name="constructor">The constructor.</param>
 /// <returns>The constructor's score.</returns>
 public int Score(ConstructorInfo constructor)
 {
     Ensure.ArgumentNotNull(constructor, "constructor");
     return constructor.HasAttribute(Settings.InjectAttribute) ? Int32.MaxValue : constructor.GetParameters().Length;
 }
Example #4
0
 public override bool HasAttribute <T>(bool inherit)
 {
     return(ci.HasAttribute <T>());
     //return ClassHelper.HasAttribute<T>(this.ci, inherit);
 }
Example #5
0
 private static bool FilterRyuConstructor(ConstructorInfo constructor)
 {
     return constructor.HasAttribute<RyuConstructorAttribute>();
 }