예제 #1
0
        /// <summary>
        ///  Add a Result attribute to the map.
        /// </summary>
        /// <param name="component">WhatComponent for a Result attribute used in baselining</param>
        public void Add(WhatComponent component)
        {
            TrustKey key = new TrustKey(component);

            TrustValue value = null;

            if (!_map.TryGetValue(key, out value))
            {
                value     = new TrustValue();
                _map[key] = value;
            }

            value.Add(component);
        }
예제 #2
0
 public bool Equals(TrustKey other)
 {
     return(string.Equals(this.PropertySet, other.PropertySet) &&
            string.Equals(this.PropertyName, other.PropertyName));
 }