Beispiel #1
0
 public static bool MatchesSize(PokemonSize pkmnSize, PokemonSize?filterSize)
 {
     return((filterSize.HasValue && pkmnSize == filterSize.Value) ||
            filterSize == PokemonSize.All ||
            !filterSize.HasValue ||
            filterSize == null);
 }
Beispiel #2
0
 public bool MatchesSize(PokemonSize pkmnSize, PokemonSize?filterSize)
 {
     return((filterSize.HasValue && pkmnSize == filterSize.Value) || !filterSize.HasValue);
 }