Why the example using System.dll? which does not include the necessary reference in the example? RRS feed

  • Question

  • the example in the SerialPort Class

    makes me feel confused.

    In this example, it using System.dll. but the system.dll doesn't include the necessary classes like:
    StringComparer, Thread. they are all included in mscorlib.dll


    • Edited by Tyskin Wednesday, June 21, 2017 2:55 PM syntex error
    Wednesday, June 21, 2017 2:54 PM

All replies

  • Good question Tyskin.  I did not know so I searched and found a post by the CLR/BCL team on stack overflow:

    Cheers, Jeff

    Wednesday, June 21, 2017 11:09 PM
  • I think that “mscorlib” is a mandatory assembly that is included automatically into CLR projects. The samples only mention additional assemblies.

    Thursday, June 22, 2017 5:12 AM