Example #1
0
 public static T _ <T>(this Stringer target)
 {
     try
     {
         return(((Stringer <T>)target).Target);
     }
     catch (NotImplementedException ex)
     {
         throw new PanicException($"interface conversion: {GetGoTypeName(target.GetType())} is not {GetGoTypeName(typeof(T))}: missing method {ex.InnerException?.Message}", ex);
     }
 }