コード例 #1
0
        /// <summary>
        ///   <para>Edge size of profile icon in pixels.</para>
        /// </summary>
        /// <param name="widget">Widget to call method on.</param>
        /// <param name="size">Icon's size.</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="ISoundCloudProfileIconWidget.Size(short)"/>
        public static ISoundCloudProfileIconWidget Size(this ISoundCloudProfileIconWidget widget, SoundCloudProfileIconSize size)
        {
            Assertion.NotNull(widget);

            return(widget.Size((short)size));
        }
    /// <summary>
    ///   <para>Edge size of profile icon in pixels.</para>
    /// </summary>
    /// <param name="widget">Widget to call method on.</param>
    /// <param name="size">Icon's size.</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="ISoundCloudProfileIconWidget.Size(short)"/>
    public static ISoundCloudProfileIconWidget Size(this ISoundCloudProfileIconWidget widget, SoundCloudProfileIconSize size)
    {
      Assertion.NotNull(widget);

      return widget.Size((short)size);
    }