ReplaceAll(MapTemplate toFind, MapTemplate toReplace, string operations) { return(CharUtils .Replace(Content, toFind.Content, toReplace.Content, 100, operations)); }
/// <summary> /// Search a template in the content of this objetc, and replace it with another one, /// </summary> /// <param name="toFind">the template to find</param> /// <param name="toReplace">the template to replace with</param> /// <returns>true if at least one modification occured</returns> public bool ReplaceAll(MapTemplate toFind, MapTemplate toReplace) { return(CharUtils .Replace(Content, toFind.Content, toReplace.Content, 100, "")); }