Exemplo n.º 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);
Exemplo n.º 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));
 }