Beispiel #1
0
 public bool CanResolve(InjectionTargetInfo target) =>
 target.Parameter != null && target.GetCustomAttributes(typeof(OptionalAttribute), true).Any();
 public bool CanResolve(InjectionTargetInfo target)
 {
     return(target.Parameter != null &&
            target.GetCustomAttributes(typeof(OptionalAttribute), true).Length > 0);
 }
 public bool CanResolve(InjectionTargetInfo target)
 {
     return target.Parameter != null &&
         target.GetCustomAttributes(typeof(OptionalAttribute), true).Length > 0;
 }