ReSharper do not take in account methods and properties in HTML code

I have code below and ReSharper always mark property UrlShort as not used or if I click Find Usages ReSharper show that property is not used anywhere. Actualy UrlShort is used in html code as <%#Eval("UrlShort") %>
Is this bug or limitation of ReSharper?


HTML Code

  <asp:HyperLink ID="HyperLink1" NavigateUrl='<%#Eval("URL")%>' Text='<%#Eval("UrlShort") %>'
                                            runat="server" Target="_blank" />




C# Code


        public string UrlShort
        {
            get
            {
                return url.Minimize(100);
            }
        }

1 comment

Hello Tomas,

Such situation is not supported by ReSharper and it doesn't consider Eval("UrlShort")
as a usage of UrlShort property. I've filed a feature request: http://youtrack.jetbrains.net/issue/RSRP-233941
and you're welcome to monitor its status.

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I have code below and ReSharper always mark property UrlShort as not
used or if I click Find Usages ReSharper show that property is not
used anywhere. Actualy UrlShort is used in html code as
<%#Eval("UrlShort") %>

Is this bug or limitation of ReSharper?

HTML Code

<asp:HyperLink ID="HyperLink1" NavigateUrl='<%#Eval("URL")%>'
Text='<%#Eval("UrlShort") %>'
runat="server"
Target="_blank" />
C# Code

public string UrlShort
{
get
{
return url.Minimize(100);
}
}
---
Original message URL:
http://devnet.jetbrains.net/message/5298034#5298034



0

Please sign in to leave a comment.