コード例 #1
0
ファイル: print_Stringer.cs プロジェクト: zjmit/go2cs
 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);
     }
 }