Exemplo n.º 1
0
 public static bool HasAnyFlag(this PetFoodMask flags, PetFoodMask otherFlags)
 {
     return((flags & otherFlags) != (PetFoodMask)0);
 }
Exemplo n.º 2
0
 public static bool HasAnyFlag(this PetFoodMask flags, PetFoodType foodType)
 {
     return((flags & (PetFoodMask)(1 << (int)(foodType - 1 & (PetFoodType)31))) != (PetFoodMask)0);
 }
Exemplo n.º 3
0
		public static bool HasAnyFlag(this PetFoodMask flags, PetFoodMask otherFlags)
		{
			return (flags & otherFlags) != 0;
		}