Example #1
0
 public IType GetFunctionPointerType(SRM.MethodSignature <IType> signature)
 {
     if (signature.Header.IsInstance)
     {
         // pointers to member functions are not supported even in C# 9
         return(compilation.FindType(KnownTypeCode.IntPtr));
     }
     return(FunctionPointerType.FromSignature(signature, module));
 }
Example #2
0
 public IType GetFunctionPointerType(SRM.MethodSignature <IType> signature)
 {
     return(compilation.FindType(KnownTypeCode.IntPtr));
 }