Esempio n. 1
0
        public bool Merge(Discoverer.Runner.SimplePropertyInfo propInfo)
        {
            bool hasChanged = false;

            if (_propertyType != propInfo.PropertyType)
            {
                _propertyType = propInfo.PropertyType;
                hasChanged    = true;
            }

            return(hasChanged);
        }
Esempio n. 2
0
        /// <summary>
        ///  Called by the GenericMergeList method
        /// </summary>
        /// <param name="rP"></param>
        /// <returns></returns>
        SimplePropertyInfo FindOrCreate(Runner.SimplePropertyInfo rP)
        {
            SimplePropertyInfo foundProp = null;

            foreach (SimplePropertyInfo p in this._propertiesInfoCollection)
            {
                if (p.Name == rP.Name)
                {
                    foundProp = p;
                }
            }

            if (foundProp != null)
            {
                foundProp.Merge(rP);
            }
            else
            {
                foundProp = new SimplePropertyInfo();
                foundProp.Initialize(rP);
            }
            return(foundProp);
        }
Esempio n. 3
0
 public void Initialize(Discoverer.Runner.SimplePropertyInfo r)
 {
     _name         = r.Name;
     _propertyType = r.PropertyType;
 }