Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

The problem about netstandard.dll

Discussion in 'Experimental Scripting Previews' started by iancurtis, Jun 26, 2019.

  1. iancurtis

    iancurtis

    Joined:
    Sep 11, 2018
    Posts:
    2
    The
    Code (CSharp):
    1. System.Collections.Generic.Dictionary
    in runtime is located in “/Applications/Unity/Hub/Editor/2019.1.2f1/Unity.app/Contents/NetStandard/ref/2.0.0/netstandard.dll” and the count of constructors is 6, but when I used reflection to get it, it’s location is “/Applications/Unity/Hub/Editor/2019.1.2f1/Unity.app/Contents/MonoBleedingEdge/lib/mono/unityjit/Facades/netstandard.dll” and the count of constructors is 8,

    the runtime and the reflection don’t match , why?
     
  2. joncham

    joncham

    Unity Technologies

    Joined:
    Dec 1, 2011
    Posts:
    276
    The API exposed by netstandard.dll is a proper subset of the API that is actually run against. The implementation that code is run against likely has a larger API surface than is exposed in the reference assemblies.
     
  3. iancurtis

    iancurtis

    Joined:
    Sep 11, 2018
    Posts:
    2
    Thanks for your lightening reply.
    I wanna use reflection to generate some code for lua, so what should I know the differences exactly?