예제 #1
0
 /* ----------------------------------------------------------------- */
 ///
 /// Convert
 ///
 /// <summary>
 /// Executes the Convert method of the specified SimplexConverter.
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 private T Convert <T>(SimplexConverter src, object value) =>
 (T)src.Convert(value, typeof(T), null, CultureInfo.CurrentCulture);
예제 #2
0
 /* ----------------------------------------------------------------- */
 ///
 /// Convert
 ///
 /// <summary>
 /// Sets the culture and executes the Convert method of the
 /// specified SimplexConverter.
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 private T Convert <T>(SimplexConverter src, object value, Language lang)
 {
     Locale.Set(lang);
     return(Convert <T>(src, value));
 }