/// <summary> /// Initializes a new instance of the <see cref="TypeResults"/> class. /// </summary> /// <param name="methodReference"> /// The reflected information on the final method produced by the compiler. /// </param> /// <param name="compiledType"> /// The results of the programmatically-accessed compilation of the containing type. /// </param> protected internal MethodResults(MethodInfo methodReference, TypeResults compiledType) { typeResults = compiledType; method = methodReference; Instance = typeResults.Instantiate(); FastInvoke = Hack.GetMethodInvoker(method); }
/// <summary> /// Initializes a new instance of the <see cref="TypeResults"/> class. /// </summary> /// <param name="methodReference"> /// The reflected information on the final method produced by the compiler. /// </param> /// <param name="compiledType"> /// The results of the programmatically-accessed compilation of the containing type. /// </param> protected internal MethodResults(MethodInfo methodReference, TypeResults compiledType) { typeResults = compiledType; method = methodReference; Instance = typeResults.Instantiate(); FastInvoke = Hack.GetMethodInvoker(method); }