예제 #1
0
 /// <summary>
 /// Write a <see cref="CallingConventionSig"/> signature
 /// </summary>
 /// <param name="helper">Helper</param>
 /// <param name="sig">The signature</param>
 /// <returns>The signature as a byte array</returns>
 public static byte[] Write(ISignatureWriterHelper helper, CallingConventionSig sig)
 {
     using (var writer = new SignatureWriter(helper))
     {
         writer.Write(sig);
         return(writer.GetResult());
     }
 }
예제 #2
0
 /// <summary>
 /// Write a <see cref="TypeSig"/> signature
 /// </summary>
 /// <param name="helper">Helper</param>
 /// <param name="typeSig">The type</param>
 /// <returns>The signature as a byte array</returns>
 public static byte[] Write(ISignatureWriterHelper helper, TypeSig typeSig)
 {
     using (var writer = new SignatureWriter(helper))
     {
         writer.Write(typeSig);
         return(writer.GetResult());
     }
 }