public static bool HasBehavior(this CodeGenerationBehaviorsCollection @this, string name) { return(@this.Count(b => b.Name == name && b.IsEnabled) > 0); }
public static CodeGenerationBehaviorElement GetBehavior(this CodeGenerationBehaviorsCollection @this, string name) { return(@this.FirstOrDefault(b => b.Name == name)); }