R#6 - Refactoring: Move to another file does not work!
Hello,
In one of my ASP.NET demo projects, I have this piece of code, but the move to another file does not seems to work, a known bug ?
using System;
using System.Web;
using System.Web.UI;
using Shilony.Web;
public class DisposableObject : IDisposable
{
public DisposableObject()
{
HttpContext.Current.Response.Write("<br/>I'm created.<br/>");
}
public void Dispose()
{
HttpContext.Current.Response.Write("<br/>I'm disposed.<br/>");
}
}
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
Context.CreateInstance<DisposableObject>();
}
}
Please sign in to leave a comment.
Hello Eyal,
I'm afraid I couldn't reproduce this problem. Could you please attach a small
demo solution along with exact repro steps? Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"