Automate Resharper's "to property with backing field" across many properties and classes?
===

I've got some C# code like this (class file = Status.cs):

        /// <summary>
        /// Constructs a status entity with the text specified
        /// </summary>
        /// <param name="someParameter">Some parameter.</param>
        public Status(string someParameter)
        {
            SomeProperty = someParameter;
        }

        /// <summary>
        /// An example of a virtual property.
        /// </summary>
        public virtual string SomeProperty { get; private set; }

And I want to do 3 things to it:

1.  perform a Resharper "to property with backing field" on it
2.  get rid of the "private set" and replace it with a regular "set"
3.  change the constructor so it initializes the private field instead of the property

So the end result would look like this:

        /// <summary>
        /// Constructs a status entity with the text specified
        /// </summary>
        /// <param name="someParameter">Some parameter.</param>
        public Status(string someParameter)
        {
            _someProperty = someParameter;
        }

	    private string _someProperty;

	    /// <summary>
        /// An example of a virtual property.
        /// </summary>
        public virtual string SomeProperty
	    {
	        get { return _someProperty; }
	        set { _someProperty = value; }
	    }

And my question is:  Is there a way to automate this type of refactoring using, say, the Resharper API ?  

Background:

For those who might wonder why I want to do this, it's because:

1. I'm upgrading NHibernate (old=2.1.2.4000, new=3.3.1.4000) and Fluent NHibernate (old=1.1.0.685, new=1.3.0.0).

2. I've got rid of the old NHibernate.ByteCode.Castle.dll and the corresponding line in the config file, so I can now use the default proxy that's built into the latest NHibernate.

3. Between the new implementation of NHibernate and the new version of Fluent, there seem to be two problems when I try to build and run unit tests (part of this is FxCop complaining, but anyway):

a) exceptions are thrown because of the "private set", and 
b) exceptions are thrown because the virtual property is being initialized in the constructor.

So I found that if I make those changes, it compiles and the unit tests pass.

So that's fine for a class or two, but there are over 800 class files and who knows how many properties.

I'm sure there are lots of ways to do this (e.g. using reflection, recursing through the directories and parsing the files etc), but it seems like Resharper is the proper tool for something like this.

Any help appreciated, thank you, -Dave
