public bool IsIPBanned(string ipAddress) { foreach (string bannedip in this.BannedIPs) { if(bannedip == ipAddress) return true; } return false; }