History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-27261
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Oleg Stepanov
Reporter: James Hebben
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

ASP.NET : Generate property backed by ViewState

Created: 06 Aug 06 19:25   Updated: 18 Mar 07 17:45
Component/s: Language - ASP.NET, Live templates
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=27261


 Description  « Hide
In ASP.NET we often need to have a property that is persisted in ViewSate. This is an ideal code generation for R#.

Scope : public|protected|internal|private
T : the property type
Property : the property name

The template is:

Scope T Property
{
  get { return (T)ViewState["Property"]; }
  set { ViewState["Property"] = value; }
}


 All   Comments   Work Log   Change History      Sort Order:
Ilya Ryzhenkov - 18 Mar 07 17:45
As there is no field, for which property should be generated, it is more for LiveTemplate. Thus, we may need to have LT support for languages like ASP.NET, XAML, etc.