Skip to content

Commit 840cf95

Browse files
authored
Add ToArray() to ConcurrentObservableCollection
1 parent e7d442e commit 840cf95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/WireMock.Net/Util/ConcurrentObservableCollection.cs

+8
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,12 @@ public List<T> ToList()
8484
return Items.ToList();
8585
}
8686
}
87+
88+
public T[] ToArray()
89+
{
90+
lock (_lockObject)
91+
{
92+
return Items.ToArray();
93+
}
94+
}
8795
}

0 commit comments

Comments
 (0)