示例#1
0
        public bool IsBannedIn(string format)
        {
            if (LegalityByFormat.TryGetValue(format, out var legality))
            {
                return(Str.Equals(legality.Legality, Legality.Banned));
            }

            return(false);
        }
示例#2
0
 private bool hasLegalityValueIn(string format, string legalityValue) =>
 LegalityByFormat.TryGetValue(format, out var legality) &&
 Str.Equals(legality, legalityValue);