Пример #1
0
 public static bool HasAnyFlag(this PetFoodMask flags, PetFoodMask otherFlags)
 {
     return((flags & otherFlags) != (PetFoodMask)0);
 }
Пример #2
0
 public static bool HasAnyFlag(this PetFoodMask flags, PetFoodType foodType)
 {
     return((flags & (PetFoodMask)(1 << (int)(foodType - 1 & (PetFoodType)31))) != (PetFoodMask)0);
 }
Пример #3
0
		public static bool HasAnyFlag(this PetFoodMask flags, PetFoodMask otherFlags)
		{
			return (flags & otherFlags) != 0;
		}