BF2Statistics.Gamespy.Redirector.GamespyDnsReport.AddOrUpdate C# (CSharp) Method

AddOrUpdate() public method

Adds or Updates a Dns Cache Result to the list of entries
public AddOrUpdate ( DnsCacheResult Result ) : void
Result BF2Statistics.Net.DnsCacheResult
return void
        public void AddOrUpdate(DnsCacheResult Result)
        {
            // Add if the entry already exists
            if (Entries.ContainsKey(Result.HostName))
            {
                Entries[Result.HostName] = Result;
            }
            else // Update entry
            {
                Entries.Add(Result.HostName, Result);
            }
        }