/// <summary> /// Retrieves the changes between <paramref name="oldVersion"/> and <paramref name="newVersion"/>. /// </summary> /// <param name="newVersion">The properties associated with the new version of the object.</param> /// <param name="oldVersion">The properties associated with the old version of the object.</param> /// <param name="includePropertiesThatHaveNotChanged">If false, the returned collection will have unchanged items removed.</param> /// <returns>The changes.</returns> public static IEnumerable <PropertyValueChange> GetChanges ( this PropertyValues newVersion, PropertyValues oldVersion, bool includePropertiesThatHaveNotChanged = false ) { // Use the other overload and throw away the out value. return(newVersion.GetChanges(oldVersion, out _, includePropertiesThatHaveNotChanged)); }