TileCook.TileFilter.IsFormatValid C# (CSharp) Method

IsFormatValid() public method

public IsFormatValid ( string other ) : bool
other string
return bool
        public bool IsFormatValid(string other)
        {
            if (this._formats == null)
                return true;

            foreach(string format in this._formats)
            {
                if (format.ToLower() == other.ToLower())
                    return true;
            }

            return false;
        }