Ejemplo n.º 1
0
 /// <summary>
 /// <para>Cast a reference on the stack to the given reference type.</para>
 /// <para>If the cast is not legal, a CastClassException will be thrown at runtime.</para>
 /// </summary>
 public Emit CastClass(Type referenceType)
 {
     InnerEmit.CastClass(referenceType);
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// <para>Cast a reference on the stack to the given reference type.</para>
 /// <para>If the cast is not legal, a CastClassException will be thrown at runtime.</para>
 /// </summary>
 public Emit CastClass <ReferenceType>()
     where ReferenceType : class
 {
     InnerEmit.CastClass <ReferenceType>();
     return(this);
 }