Пример #1
0
 public static bool _ <T>(this go.golang.org.x.tools.go.ssa.interp_package.iter target, out T result)
 {
     try
     {
         result = target._ <T>();
         return(true);
     }
     catch (PanicException)
     {
         result = default !;
Пример #2
0
 public static T _ <T>(this go.golang.org.x.tools.go.ssa.interp_package.iter target)
 {
     try
     {
         return(((go.golang.org.x.tools.go.ssa.interp_package.iter <T>)target).Target);
     }
     catch (NotImplementedException ex)
     {
         throw new PanicException($"interface conversion: {GetGoTypeName(target.GetType())} is not {GetGoTypeName(typeof(T))}: missing method {ex.InnerException?.Message}");
     }
 }