/// <summary> /// <para>Annotation to display next to the button.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="annotation">Annotation for the button.</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="IGooglePlusOneButtonWidget.Annotation(string)"/> public static IGooglePlusOneButtonWidget Annotation(this IGooglePlusOneButtonWidget widget, GooglePlusOneButtonAnnotation annotation) { Assertion.NotNull(widget); return widget.Annotation(annotation.ToString().ToLowerInvariant()); }
/// <summary> /// <para>Annotation to display next to the button.</para> /// </summary> /// <param name="widget">Widget to call method on.</param> /// <param name="annotation">Annotation for the button.</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="IGooglePlusOneButtonWidget.Annotation(string)"/> public static IGooglePlusOneButtonWidget Annotation(this IGooglePlusOneButtonWidget widget, GooglePlusOneButtonAnnotation annotation) { Assertion.NotNull(widget); return(widget.Annotation(annotation.ToString().ToLowerInvariant())); }