这里主要是通过两层For循环来实现的,重复的规则自己定制。
for( int i = 0; i < PipeBendList.Count; i++ ) {
for( int j = PipeBendList.Count - 1; j > i; j-- ) {
if( PipeBendList[ i ].IsEqual( PipeBendList[ j ] ) ) {
PipeBendList.RemoveAt( j );
}
}
}
这里主要是通过两层For循环来实现的,重复的规则自己定制。
for( int i = 0; i < PipeBendList.Count; i++ ) {
for( int j = PipeBendList.Count - 1; j > i; j-- ) {
if( PipeBendList[ i ].IsEqual( PipeBendList[ j ] ) ) {
PipeBendList.RemoveAt( j );
}
}
}