none
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

    https://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.110).aspx?cs-save-lang=1&cs-lang=cpp#Examples

    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

    why?


    • 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: https://stackoverflow.com/questions/402582/mscorlib-dll-system-dll


    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