언어/C#

ConstainsKey, AddOrUpdate 메서드, Stopwatch

에린_1 2024. 7. 31. 09:55
728x90

ConstainsKey

  • Dictionary에 키를 추가하는 경우 키가 포함되어 있는지 확인을 할 때 사용한다.

ConcurrentDictionary<TKey,TValue>.AddOrUpdate 메서드

  • 키가 아직 없는 경우 ConcurrentDictionary<TKey, TValue>에 키/값 쌍을 추가하고, 키가 이미 있는 경우 키/값 쌍을 업데이트 한다.

Stopwatch

경과 시간을 정확하게 측정하는 데 사용할 수 있는 일련의 메서드와 속성을 제공한다.

728x90

'언어 > C#' 카테고리의 다른 글

Select, Where, OrderBy, List.Find(All)  (0) 2024.07.31
LINQ(Language Integrated Query), AsEnumerable Method  (0) 2024.07.31
SocketAsyncEventArgs  (0) 2024.07.31
as/ is/ this/ base  (0) 2024.07.31
Interlocked  (0) 2024.07.31