/// <summary> /// Clones this instance into a new instance of the same type /// </summary> /// <returns></returns> public MappingCollection Clone() { var newMappingCollection = new MappingCollection(); CopyTo(newMappingCollection); return(newMappingCollection); }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false. /// </returns> public bool Equals(MappingCollection other) => Items.CollectionEqual(other);
/// <summary> /// Copies all properties to the other instance /// </summary> /// <param name="other">The other instance</param> public void CopyTo(MappingCollection other) => Items.CollectionCopy(other);