/// <summary> /// <para>Position of a share counter.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="position">Position of a counter.</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="IMailRuLikeButtonWidget.CounterPosition(string)"/> public static IMailRuLikeButtonWidget CounterPosition(this IMailRuLikeButtonWidget widget, MailRuLikeButtonCounterPosition position) { Assertion.NotNull(widget); return(widget.CounterPosition(position.ToString().ToLowerInvariant())); }
/// <summary> /// <para>Position of a share counter.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="position">Position of a counter.</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="IMailRuLikeButtonWidget.CounterPosition(string)"/> public static IMailRuLikeButtonWidget CounterPosition(this IMailRuLikeButtonWidget widget, MailRuLikeButtonCounterPosition position) { Assertion.NotNull(widget); return widget.CounterPosition(position.ToString().ToLowerInvariant()); }