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