Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    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:
    253
    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?
     
unityunity