vendredi 7 juin 2019

F#: Fetching internal static type from a third party library returns null [duplicate]

This question already has an answer here:

I am willing to fetch the type of the class below ExpressionCompiler:

namespace Marten.Util
{
  /// <summary>Compiles expression to delegate by emitting the IL directly.
  /// The emitter is ~20 times faster than Expression.Compile.</summary>
  internal static class ExpressionCompiler

I tried to use Type.GetType:

let expressionCompiler = Type.GetType("ExpressionCompiler")

or

let expressionCompiler = Type.GetType("Marten.Util.ExpressionCompiler")

But both of them return null





Aucun commentaire:

Enregistrer un commentaire