/// <summary> /// copy constructor -- this returns a copy of the structure, /// but it does not duplicate the data (it just keeps a reference to the original) /// </summary> /// <param name="rhs">The NoDupePointList to be copied</param> public NoDupePointList(NoDupePointList rhs) { var count = rhs.TotalCount; for (var i = 0; i < count; i++) { Add(rhs.GetDataPointAt(i)); } _filteredCount = rhs._filteredCount; _isFiltered = rhs._isFiltered; FilterMode = rhs.FilterMode; _visibleIndicies = (int[])rhs._visibleIndicies?.Clone(); }
/// <summary> /// copy constructor -- this returns a copy of the structure, /// but it does not duplicate the data (it just keeps a reference to the original) /// </summary> /// <param name="rhs">The NoDupePointList to be copied</param> public NoDupePointList(NoDupePointList rhs) { int count = rhs.TotalCount; for (int i = 0; i < count; i++) { Add(rhs.GetDataPointAt(i)); } _filteredCount = rhs._filteredCount; _isFiltered = rhs._isFiltered; _filterMode = rhs._filterMode; if (rhs._visibleIndicies != null) { _visibleIndicies = (int[])rhs._visibleIndicies.Clone(); } else { _visibleIndicies = null; } }
/// <summary> /// copy constructor -- this returns a copy of the structure, /// but it does not duplicate the data (it just keeps a reference to the original) /// </summary> /// <param name="rhs">The NoDupePointList to be copied</param> public NoDupePointList( NoDupePointList rhs ) { int count = rhs.TotalCount; for ( int i = 0; i < count; i++ ) Add( rhs.GetDataPointAt( i ) ); _filteredCount = rhs._filteredCount; _isFiltered = rhs._isFiltered; _filterMode = rhs._filterMode; if ( rhs._visibleIndicies != null ) _visibleIndicies = (int[]) rhs._visibleIndicies.Clone(); else _visibleIndicies = null; }