Esempio n. 1
0
        override public string PropagationGraphStringFor(IEnumerable <PropagationReason> stack)
        {
            var sb = new StringBuilder("<br>");

            foreach (var reason in stack)
            {
                if (reason.MethodThatTaintedMe == null)
                {
                    sb.AppendFormat("{0}<br>", reason.Explanation);
                }
                else
                {
                    sb.AppendFormat("{2} <a class='{3}' href='{0}'>{1}</a>(ML:{4})<br>which ",
                                    HRefFor(reason.MethodThatTaintedMe),
                                    HtmlSignatureFor(reason.MethodThatTaintedMe),
                                    reason.Explanation,
                                    CssClassFor(reason),
                                    Moonlight.GetSecurityStatusFor(reason.MethodThatTaintedMe));
                }
            }
            return(sb.ToString());
        }