none
System.ObjectModel assembly RRS feed

  • Question

  • im developing a net 4.7 framework library using the  last VS version , and I want to use ReadOnlyDictionary class,but when adding the reference i cant find System.ObjectModel assembly in the list.  thank you
    Monday, January 29, 2018 7:38 PM

Answers

All replies

  • Does it work if you simply write a test:

    var list = new System.Collections.Generic.List<string>();

    var coll = new System.Collections.ObjectModel.ReadOnlyCollection<string>(list);

     

    What kind of project do you have: Forms, UWP, etc.?

    Monday, January 29, 2018 7:44 PM
  • ok its mscorlib.dll   namespace:System.Collections.ObjectModel
    • Marked as answer by PablogilZ1 Monday, January 29, 2018 7:52 PM
    Monday, January 29, 2018 7:51 PM