internal void Merge(CDiscoveredAttributes attributesToMerge)
 {
     foreach (int k in attributesToMerge.Attributes.Keys)
     {
         _attributes[k] = attributesToMerge.Attributes[k];
     }
 }
        internal static CDiscoveredConfig Deserialize(string str)
        {
            CDiscoveredConfig result = new CDiscoveredConfig();

            if (str.Length > 0 && str != "{}")
            {
                result.Attributes = CDiscoveredAttributes.Deserialize(str);
                result.Metrics    = CDiscoveredMetrics.Deserialize(str);
            }
            return(result);
        }
        internal static CDiscoveredAttributes Deserialize(string str)
        {
            CDiscoveredAttributes result = new CDiscoveredAttributes();

            str = str.Replace("{", "");
            str = str.Replace("}", "");
            string[] arr = str.Split(',');
            foreach (string attr in arr)
            {
                string[] ad    = attr.Replace("\"", "").Split(':');
                int      index = Convert.ToInt32(ad[0]);
                if (index < 1000)
                {
                    string val = ad[1];
                    result.Set(index, val);
                }
            }
            return(result);
        }