Beispiel #1
0
 public void Intern()
 {
     if (m_data != null && m_data.Count > 0)
     {
         m_data.Intern();
     }
     else
     {
         m_data = null;
     }
 }
Beispiel #2
0
        public ResponseData016(string id = "", InternedDictionary <string, object> data = null, TimingData[] benchmarks = null)
        {
            Id         = id;
            TimingData = new DataSet016 <TimingData>(this);

            foreach (KeyValuePair <string, object> kvp in data)
            {
                if (!Data.ContainsKey(kvp.Key))
                {
                    Data.Add(kvp.Key, kvp.Value);
                }
                else
                {
                    Data[kvp.Key] = kvp.Value;
                }
            }

            if (benchmarks != null)
            {
                TimingData.AddRange(benchmarks);
            }
        }