Esempio n. 1
0
 public static bool _ <T>(this go.net.http_package.http2headersOrContinuation target, out T result)
 {
     try
     {
         result = target._ <T>();
         return(true);
     }
     catch (PanicException)
     {
         result = default !;
Esempio n. 2
0
 public static T _ <T>(this go.net.http_package.http2headersOrContinuation target)
 {
     try
     {
         return(((go.net.http_package.http2headersOrContinuation <T>)target).Target);
     }
     catch (NotImplementedException ex)
     {
         throw new PanicException($"interface conversion: {GetGoTypeName(target.GetType())} is not {GetGoTypeName(typeof(T))}: missing method {ex.InnerException?.Message}");
     }
 }