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; }