Instantiate() public method

Creates an instance of the Type represented by the current TypeResults object.
public Instantiate ( ) : object
return object
コード例 #1
0
 /// <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);
 }
コード例 #2
0
ファイル: MethodResults.cs プロジェクト: swax/SwarmNLP
 /// <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);
 }