コード例 #1
0
 public static bool TryParse(string s, CultureInfo culture, out RVUnit rvUnit)
 {
     try
     {
         rvUnit = new RVUnit(s, culture);
         return(true);
     }
     catch (Exception ex)
     {
         Exception ex2 = FindStoppingException(ex);
         if (ex2 == ex)
         {
             throw;
         }
         if (ex2 != null)
         {
             throw ex2;
         }
         rvUnit = Empty;
         return(false);
     }
 }
コード例 #2
0
 internal static bool TryParse(string s, out RVUnit rvUnit)
 {
     return(TryParse(s, null, out rvUnit));
 }