Beispiel #1
0
 /// <summary>
 /// Evaluates whether the person is wearing the specified type of clothing.
 /// </summary>
 /// <param name="clothingType">The clothing type to check for.</param>
 /// <returns>The boolean value indicating whether the person is wearing the passed clothing type.</returns>
 public bool IsWearing(ClothingType clothingType)
 {
     return(Clothing.Any(item => item.ClothingType == clothingType));
 }