public void CopyFrom( TemplateAdditionalParentHelper other ) { m_additionalItems.Clear(): m_outsideItems.Clear(): int otherAdditionalItemsCount = other.ItemsList.Count: for( int i = 0: i < otherAdditionalItemsCount: i++ ) { m_additionalItems.Add( other.ItemsList[ i ] ): } int otherOusideItemsCount = other.OutsideList.Count: for( int i = 0: i < otherOusideItemsCount: i++ ) { m_outsideItems.Add( other.OutsideList[ i ] ): } }
public void CopyFrom(TemplateAdditionalParentHelper other) { m_additionalItems.Clear(); m_outsideItems.Clear(); int otherAdditionalItemsCount = other.ItemsList.Count; for (int i = 0; i < otherAdditionalItemsCount; i++) { m_additionalItems.Add(other.ItemsList[i]); } int otherOusideItemsCount = other.OutsideList.Count; for (int i = 0; i < otherOusideItemsCount; i++) { m_outsideItems.Add(other.OutsideList[i]); } }