/// <summary>
    ///   <para>Text to display on button.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <param name="text">Numeric code of text to display.</param>
    /// <returns>Reference to provided <paramref name="widget"/>.</returns>
    /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
    /// <seealso cref="IYandexMoneyPaymentFormWidget.Text(byte)"/>
    public static IYandexMoneyPaymentFormWidget Text(this IYandexMoneyPaymentFormWidget widget, YandexMoneyPaymentFormText text)
    {
      Assertion.NotNull(widget);

      return widget.Text((byte)text);
    }
Exemple #2
0
        /// <summary>
        ///   <para>Text to display on button.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</param>
        /// <param name="text">Numeric code of text to display.</param>
        /// <returns>Reference to provided <paramref name="widget"/>.</returns>
        /// <exception cref="ArgumentNullException">If <paramref name="widget"/> is a <c>null</c> reference.</exception>
        /// <seealso cref="IYandexMoneyPaymentFormWidget.Text(byte)"/>
        public static IYandexMoneyPaymentFormWidget Text(this IYandexMoneyPaymentFormWidget widget, YandexMoneyPaymentFormText text)
        {
            Assertion.NotNull(widget);

            return(widget.Text((byte)text));
        }