Auto Property Plugin

I'm trying to write a plugin to convert an auto property to a property with a backing field
I've got the plugin framework working, and the option showing on auto properties.  My problem is that i have no idea how to replace the existing property with my updated version.

public string Sample {get; set;}


private string _sample;
public string Sample
     get{return _sample;}
          if(_sample==value) return;

Please sign in to leave a comment.