Custom pattern search but doesn't replace

Hello all,

there is some behavior in custom search patterns which I don't understand. I would like to replace this piece of code:

--- INPUT START ---
        private CiselnaRada fCiselnaRada;
        public CiselnaRada CiselnaRada
        {
            get
            {
                return fCiselnaRada = fCiselnaRada.LazyLoadS5Object(fCiselnaRada_ID, "CiselnaRada") as CiselnaRada;
            }
            set
            {
                fCiselnaRada = value;
                fCiselnaRada_ID = fCiselnaRada.GetIdFromS5Object();
            }
        }
        #endregion
        #region Property CiselnaRada_ID
        private Guid fCiselnaRada_ID;
        [XmlExport(true)]
        public Guid CiselnaRada_ID
        {
            get { return fCiselnaRada_ID; }
            set
            {
                fCiselnaRada_ID = value;
                fCiselnaRada = null;
            }
        }
--- INPUT END ---

with anyhting. For example this:

public int Id { get; set; }

Unfortunatelly, code is search in the right way but replace doesn't work. It replaces only first line of code.

A sample console project and pattern setting is attached.

Thank you for any ideas.

Radoslav Cap



Attachment(s):
settings.DotSettings.zip
ConsoleApplication7.rar.zip

Please sign in to leave a comment.