This is a migrated thread and some comments may be shown as answers.

null.SomeMethod() on decompile

1 Answer 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 26 Oct 2011, 09:23 PM
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);
}

1 Answer, 1 is accepted

Sort by
0
Yordan Dikov
Telerik team
answered on 01 Nov 2011, 10:42 AM
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.

Regards,
Yordan Dikov
the Telerik team

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

Tags
General Discussions
Asked by
Adam
Top achievements
Rank 1
Answers by
Yordan Dikov
Telerik team
Share this question
or