Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. System.Collections.Generic.SynchronizedKeyedCollection<k,t></k,t>

System.Collections.Generic.SynchronizedKeyedCollection<k,t></k,t>

Scheduled Pinned Locked Moved C#
csharpdotnetregexquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    Ungi
    wrote on last edited by
    #1

    With .NET Framework 3.0 MS shipped some extensions to System.Collections.Generic namespace. One of it is the generic class SynchronizedKeyedCollection. First seen I thought, wow I have ever wanted a thread-safe dictionary. So I tried to use that class in current project. But: What the hell. Those framework designer were not able to have same interface to that class like dictionary has. The method Add() only takes a . To assign a key you have to call ChangeItemKey method. There is no method such TryGetValue to check if an object with requested key exists. And so on. Did I miss something on understanding that class or is there a deeper reason changing the "interface-pattern" of the Dictionary class? Have you ever dealed with that class? I didn't find anything in google about this....

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups