public bool Merge(Discoverer.Runner.SimplePropertyInfo propInfo) { bool hasChanged = false; if (_propertyType != propInfo.PropertyType) { _propertyType = propInfo.PropertyType; hasChanged = true; } return(hasChanged); }
/// <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); }
public void Initialize(Discoverer.Runner.SimplePropertyInfo r) { _name = r.Name; _propertyType = r.PropertyType; }