/// <summary> /// Finds <c>IProperty</c> in <c>inClass</c> instance representing same property, but other version of <c>property</c>. /// </summary> /// <param name="inClass">Class where other version of property should be found.</param> /// <param name="property">Property to which other version is to be found.</param> private IProperty findProperty(IClass inClass, IProperty property) { foreach (IProperty elProperty in inClass.Properties) { if (MemberComparator.SameProperties(property, elProperty)) { return(elProperty); } } return(null); }
/// <summary> /// Determines if <c>change</c> represent body change of specified <c>property</c>. /// </summary> private bool bodyChangeEquals(SourceChange change, IProperty property) { return(change.OldEntity == change.NewEntity && change.NewEntity is IProperty && MemberComparator.SameProperties((IProperty)change.NewEntity, property)); }