AshMind.Web.Mvc.GravatarExtension.GetImageTag C# (CSharp) Метод

GetImageTag() приватный статический Метод

private static GetImageTag ( string source, object htmlAttributes ) : string
source string
htmlAttributes object
Результат string
        private static string GetImageTag(string source, object htmlAttributes)
        {
            IDictionary<string, object> attributes =
                (htmlAttributes == null
                     ? new RouteValueDictionary()
                     : new RouteValueDictionary(htmlAttributes));

            var builder = new TagBuilder("img");
            builder.Attributes["src"] = source;
            builder.MergeAttributes(attributes);

            return builder.ToString(TagRenderMode.SelfClosing);
        }

Same methods

GravatarExtension::GetImageTag ( string source ) : string