Ejemplo n.º 1
0
 public bool HasPartWithAttribute(BodyPartAttribute attribute) => bodyParts.Any(part => part.HasAttribute(attribute));
Ejemplo n.º 2
0
 public bool HasAttribute(BodyPartAttribute attribute) => bodyPartAttributes.Contains(attribute);
Ejemplo n.º 3
0
 public IEnumerable <BodyPart> PartsWithAttribute(BodyPartAttribute attribute) => bodyParts.Where(part => part.HasAttribute(attribute));