null.SomeMethod() on decompile

2 posts, 0 answers
  1. Adam
    Adam avatar
    2 posts
    Member since:
    Apr 2011

    Posted 26 Oct 2011 Link to this post

    I don't have the original source to compare these result to but the output doesn't seem quite right. In this case, I decompiled System.Web.WebPages.dll (v2 from a WebMatrix 2 Beta project). Specifically, I was looking at System.Web.WebPages.HtmlHelper.ValidationSummary(). When decompiled with JustDecompile, I get the following:

    public IHtmlString ValidationSummary()
        string str = null;
        bool flag;
        return IDictionary<string, object> strs = null.BuildValidationSummary(str, flag, strs);

    Since I was still curious about the workings of that method, I ran it through the latest ILSpy and ended up with this:

    // System.Web.WebPages.Html.HtmlHelper
    public IHtmlString ValidationSummary()
        string message = null;
        bool excludeFieldErrors = false;
        IDictionary<string, object> htmlAttributes = null;
        return this.BuildValidationSummary(message, excludeFieldErrors, htmlAttributes);
  2. Yordan Dikov
    Yordan Dikov avatar
    69 posts

    Posted 01 Nov 2011 Link to this post

    Hello Adam,

     Please excuse me for the delayed response. Thank you for pointing this bug out. We've logged it and we'll provide a fix in one of our next updates,so stay tuned. In the meantime don't hesitate to contact us about any bugs you stumble upon.

    Yordan Dikov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top