private bool allTypesAre(List<Profile.TypeRefComponent> types, String name) { return types.All( t => t.Code == name ); }